Dotclear


Ignore:
Timestamp:
09/02/14 22:05:33 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Fix call of javascript of all editors on media_item page but also popup_link and popup_posts
Closes #1983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php

    r2737 r2749  
    1616 
    1717     public static function adminPostEditor($editor='') { 
    18           global $core; 
    19  
    20           if (empty($editor) || $editor!='dcLegacyEditor') { 
    21                return; 
    22           } 
     18          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
    2319 
    2420          return 
     
    2723     } 
    2824 
    29      public static function adminPopupMedia() { 
     25     public static function adminPopupMedia($editor='') { 
     26          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
     27 
    3028          return dcPage::jsLoad(self::$p_url.'/js/jsToolBar/popup_media.js'); 
    3129     } 
    3230 
    33      public static function adminPopupLink() { 
     31     public static function adminPopupLink($editor='') { 
     32          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
     33 
    3434          return dcPage::jsLoad(self::$p_url.'/js/jsToolBar/popup_link.js'); 
    3535     } 
    3636 
    37      public static function adminPopupPosts() { 
     37     public static function adminPopupPosts($editor='') { 
     38          if (empty($editor) || $editor!='dcLegacyEditor') {return;} 
     39 
    3840          return dcPage::jsLoad(self::$p_url.'/js/jsToolBar/popup_posts.js'); 
    3941     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map