Changeset 28820


Ignore:
Timestamp:
06/28/14 06:32:12 (5 years ago)
Author:
rvelices
Message:

fix date picker js dependencies when combine_template_files = false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/include/datepicker.inc.tpl

    r28806 r28820  
    11{if empty($load_mode)}{$load_mode='footer'}{/if} 
    22{combine_script id='jquery.ui.timepicker-addon' load=$load_mode require='jquery.ui.datepicker,jquery.ui.slider' path="themes/default/js/ui/jquery.ui.timepicker-addon.js"} 
    3 {combine_script id='datepicker' load=$load_mode require='jquery.ui.timepicker-addon' path='admin/themes/default/js/datepicker.js'} 
    43 
     4{$require='jquery.ui.timepicker-addon'} 
    55{assign var="datepicker_language" value="themes/default/js/ui/i18n/jquery.ui.datepicker-`$lang_info.code`.js"} 
    66{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} 
    7 {combine_script id="jquery.ui.datepicker-$lang_info.code" load=$load_mode require='jquery.ui.datepicker' path=$datepicker_language} 
     7{combine_script id="jquery.ui.datepicker-`$lang_info.code`" load=$load_mode require='jquery.ui.datepicker' path=$datepicker_language} 
     8{$require=$require|cat:",jquery.ui.datepicker-`$lang_info.code`"} 
    89{/if} 
    910 
    1011{assign var="timepicker_language" value="themes/default/js/ui/i18n/jquery.ui.timepicker-`$lang_info.code`.js"} 
    1112{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} 
    12 {combine_script id="jquery.ui.timepicker-$lang_info.code" load=$load_mode require='jquery.ui.timepicker-addon' path=$timepicker_language} 
     13{combine_script id="jquery.ui.timepicker-`$lang_info.code`" load=$load_mode require='jquery.ui.timepicker-addon' path=$timepicker_language} 
     14{$require=$require|cat:",jquery.ui.timepicker-`$lang_info.code`"} 
    1315{/if} 
     16 
     17{combine_script id='datepicker' load=$load_mode require=$require path='admin/themes/default/js/datepicker.js'} 
    1418 
    1519{combine_css path="themes/default/js/ui/theme/jquery.ui.theme.css"} 
Note: See TracChangeset for help on using the changeset viewer.