source: trunk/template/yoga/include/datepicker.inc.tpl @ 2975

Last change on this file since 2975 was 2743, checked in by rub, 16 years ago

Resolved issue 0000893: 404 errors on template-common/lib/ui/i18n/ui.datepicker-en.js

New implementation.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1{* $Id: datepicker.inc.tpl 2743 2008-10-15 04:55:50Z rub $ *}
2
3{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
4{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
5{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.packed.js"}
6{known_script id="datepicker.js" src=$ROOT_URL|@cat:"template-common/datepicker.js"}
7
8{assign var="datepicker_language" value="template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
9
10{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
11{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:$datepicker_language}
12{/if}
13
14{html_head}
15<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/lib/ui/ui.datepicker.css">
16{/html_head}
17
18<script type="text/javascript">
19function pwg_initialization_datepicker(day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date)
20{ldelim}
21  return pwg_common_initialization_datepicker(
22    "{$ROOT_URL}{$themeconf.icon_dir}/datepicker.png",
23    day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date);
24}
25</script>
Note: See TracBrowser for help on using the repository browser.