Ignore:
Timestamp:
Jun 24, 2012, 9:18:26 PM (12 years ago)
Author:
grum
Message:

feature:2634- compatibility with Piwigo 2.4
+add some objects on js framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/classes/GPCRequestBuilder.class.inc.php

    r15352 r16012  
    22/* -----------------------------------------------------------------------------
    33  class name: GCPRequestBuilder
    4   class version  : 1.1.6
    5   plugin version : 3.5.1
    6   date           : 2011-05-15
     4  class version  : 1.1.7
     5  plugin version : 3.5.2
     6  date           : 2012-06-24
    77
    88  ------------------------------------------------------------------------------
     
    8989|         |            |   . Request builder user interface don't work
    9090|         |            |
     91| 1.1.7   | 2012/06/24 | * use some GPCCore function instead of code
    9192|         |            |
    9293|         |            |
     
    539540
    540541    //$template->append('head_elements', '<link href="plugins/'.$baseName.'rbuilder.css" type="text/css" rel="stylesheet"/>');
    541     if(defined('IN_ADMIN')) GPCCore::addHeaderCSS('gpc.rbuilder', 'plugins/'.$baseName.'rbuilder_'.$template->get_themeconf('name').'.css', 26);
     542    if(defined('IN_ADMIN')) GPCCore::addHeaderCSS('gpc.rbuilderT', 'plugins/'.$baseName.'rbuilder_'.$template->get_themeconf('name').'.css', 26);
    542543    //$template->append('head_elements', '<link href="plugins/'.$baseName.'rbuilder_'.$template->get_themeconf('name').'.css" type="text/css" rel="stylesheet"/>');
    543544
     
    556557    GPCCore::addHeaderJS('gpc.rbCriteriaBuilder', 'plugins/'.$baseName.'rbCriteriaBuilder.js', array('gpc.external.inestedsortable'));
    557558
    558     $template->append('head_elements',
    559 "<script type=\"text/javascript\">
    560   requestBuilderOptions = {
    561     textAND:\"".l10n('gpc_rb_textAND')."\",
    562     textOR:\"".l10n('gpc_rb_textOR')."\",
    563     textNoCriteria:\"".l10n('There is no criteria ! At least, one criteria is required to do search...')."\",
    564     textSomethingWrong:\"".l10n('gpc_something_is_wrong_on_the_server_side')."\",
    565     textCaddieUpdated:\"".l10n('gpc_the_caddie_is_updated')."\",
    566     helpEdit:\"".l10n('gpc_help_edit_criteria')."\",
    567     helpDelete:\"".l10n('gpc_help_delete_criteria')."\",
    568     helpMove:\"".l10n('gpc_help_move_criteria')."\",
    569     helpSwitchCondition:\"".l10n('gpc_help_switch_condition')."\",
    570     ajaxUrl:'plugins/GrumPluginClasses/gpc_ajax.php',
    571   }
    572 </script>");
     559    GPCCore::addHeaderContent('js',
     560"
     561var requestBuilderOptions = {
     562      textAND:\"".l10n('gpc_rb_textAND')."\",
     563      textOR:\"".l10n('gpc_rb_textOR')."\",
     564      textNoCriteria:\"".l10n('There is no criteria ! At least, one criteria is required to do search...')."\",
     565      textSomethingWrong:\"".l10n('gpc_something_is_wrong_on_the_server_side')."\",
     566      textCaddieUpdated:\"".l10n('gpc_the_caddie_is_updated')."\",
     567      helpEdit:\"".l10n('gpc_help_edit_criteria')."\",
     568      helpDelete:\"".l10n('gpc_help_delete_criteria')."\",
     569      helpMove:\"".l10n('gpc_help_move_criteria')."\",
     570      helpSwitchCondition:\"".l10n('gpc_help_switch_condition')."\",
     571      ajaxUrl:'plugins/GrumPluginClasses/gpc_ajax.php',
     572      token:'".get_pwg_token()."'
     573    };
     574"
     575);
    573576  }
    574577
Note: See TracChangeset for help on using the changeset viewer.