Last change
on this file since 28820 was
28820,
checked in by rvelices, 10 years ago
|
fix date picker js dependencies when combine_template_files = false
|
-
Property svn:eol-style set to
LF
|
File size:
1.4 KB
|
Line | |
---|
1 | {if empty($load_mode)}{$load_mode='footer'}{/if} |
---|
2 | {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 | |
---|
4 | {$require='jquery.ui.timepicker-addon'} |
---|
5 | {assign var="datepicker_language" value="themes/default/js/ui/i18n/jquery.ui.datepicker-`$lang_info.code`.js"} |
---|
6 | {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} |
---|
8 | {$require=$require|cat:",jquery.ui.datepicker-`$lang_info.code`"} |
---|
9 | {/if} |
---|
10 | |
---|
11 | {assign var="timepicker_language" value="themes/default/js/ui/i18n/jquery.ui.timepicker-`$lang_info.code`.js"} |
---|
12 | {if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} |
---|
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`"} |
---|
15 | {/if} |
---|
16 | |
---|
17 | {combine_script id='datepicker' load=$load_mode require=$require path='admin/themes/default/js/datepicker.js'} |
---|
18 | |
---|
19 | {combine_css path="themes/default/js/ui/theme/jquery.ui.theme.css"} |
---|
20 | {combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"} |
---|
21 | {combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"} |
---|
22 | {combine_css path="themes/default/js/ui/theme/jquery.ui.timepicker-addon.css"} |
---|
Note: See
TracBrowser
for help on using the repository browser.