Changeset 39720 in spip-zone


Ignore:
Timestamp:
Aug 9, 2010, 7:38:56 AM (9 years ago)
Author:
kent1@…
Message:

Un pipeline jqueryui_forcer pour que les plugins puissent forcer l'ajout de scripts sans qu'ils soient désactivables (ils deviennent "disabled" dans la conf)

Location:
_plugins_/jquery_ui
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/jquery_ui/formulaires/config_jqueryui.html

    r39596 r39720  
    1212
    1313        <ul>
    14        
    1514        [(#SAISIE{checkbox,plugins,
    1615                label=<:jqueryui:cfg_lbl_plugins:>,
    1716                explication=<:jqueryui:cfg_explication_plugins:>,
     17                disable=#ENV{plugins_disable},
    1818                datas=#ARRAY{
    1919                        jquery-ui-1.8.2.custom,<:jqueryui:cfg_val_complete:>,
  • _plugins_/jquery_ui/jqueryui_options.php

    r39145 r39720  
    55define('_DIR_JQUERYUI_JS',_DIR_LIB.'jquery-ui-1.8.2.custom/development-bundle/ui/');
    66
     7$GLOBALS['spip_pipeline']['jqueryui_forcer'] = "";
     8
    79?>
  • _plugins_/jquery_ui/jqueryui_pipelines.php

    r39145 r39720  
    44        $config = @unserialize($GLOBALS['meta']['jqueryui']);
    55       
    6         if (!is_array($config))
     6        if (!is_array($config) OR !is_array($config['plugins']))
    77                $config['plugins'] = array();
     8       
     9        $config['plugins'] = array_unique(array_merge(sinon(pipeline('jqueryui_forcer'),array()),$config['plugins']));
    810       
    911        foreach ($config['plugins'] as $val) {
Note: See TracChangeset for help on using the changeset viewer.