Changeset 682 for trunk


Ignore:
Timestamp:
11/27/2011 09:32:10 PM (6 months ago)
Author:
ofer
Message:

Fix translate all not working in some cases

File:
1 edited

Legend:

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

    r674 r682  
    709709    function add_transposh_js() { 
    710710        //not in any translation mode - no need for any js. 
    711         if (!($this->edit_mode || $this->is_auto_translate_permitted())) return; 
     711        if (!($this->edit_mode || $this->is_auto_translate_permitted() || is_admin())) return; // TODO, check just for settings page admin and pages with our translate 
    712712 
    713713        wp_enqueue_script('transposh', $this->transposh_plugin_url . '/' . TRANSPOSH_DIR_JS . '/transposh.js', array('jquery'), TRANSPOSH_PLUGIN_VER); 
Note: See TracChangeset for help on using the changeset viewer.