Ignore:
Timestamp:
03/03/2009 10:23:57 PM (3 years ago)
Author:
amir
Message:

Minor fixes:
Don't load js library when not in edit mode.
Enable translating the widget's checkbox (i.e. edit translation)
Use allign instead of ltr/rtl in widget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/transposh.php

    r58 r59  
    278278function insert_javascript_includes() 
    279279{ 
    280     global $plugin_url; 
     280    global $plugin_url, $is_edit_mode, $wp_query; 
     281 
     282    if (!($wp_query->query_vars[EDIT_PARAM] == "1" || 
     283         $wp_query->query_vars[EDIT_PARAM] == "true")) 
     284    { 
     285        //check permission later - for now just make sure we don't load the 
     286        //js code when it is not needed 
     287        return; 
     288    } 
     289     
    281290 
    282291    $overlib_dir = "$plugin_url/js/overlibmws"; 
Note: See TracChangeset for help on using the changeset viewer.