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/dcCKEditor/inc/dc.ckeditor.behaviors.php

    r2743 r2749  
    4242     } 
    4343 
    44     public static function adminPopupMedia() { 
     44    public static function adminPopupMedia($editor='') { 
     45        if (empty($editor) || $editor!='dcCKEditor') { return;} 
     46 
    4547     return dcPage::jsLoad(self::$p_url.'/js/popup_media.js'); 
    4648    } 
    4749 
    48     public static function adminPopupLink() { 
     50    public static function adminPopupLink($editor='') { 
     51        if (empty($editor) || $editor!='dcCKEditor') { return;} 
     52 
    4953     return dcPage::jsLoad(self::$p_url.'/js/popup_link.js'); 
    5054    } 
    5155 
    52     public static function adminPopupPosts() { 
     56    public static function adminPopupPosts($editor='') { 
     57        if (empty($editor) || $editor!='dcCKEditor') { return;} 
     58 
    5359     return dcPage::jsLoad(self::$p_url.'/js/popup_posts.js'); 
    5460    } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map