Purpose of datepicker with jQuery.

Use {html_head}
year are empty not 0.

git-svn-id: http://piwigo.org/svn/trunk@2635 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2008-10-01 22:40:09 +00:00
parent 600e2d87ec
commit 335ccb7418
@@ -2,7 +2,9 @@
{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.js"}
{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:"template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
{html_head}
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/datepicker.css">
{/html_head}
{literal}
<script type="text/javascript">
@@ -89,7 +91,7 @@ function pwg_initialization_datepicker(day, month, year, linked_date, min_linked
function updateLinked(date) {
if (date.length == 0)
{
$(year).val("0");
$(year).val("");
$(month).val("0");
$(day).val("0");
}
@@ -120,5 +122,3 @@ function pwg_initialization_datepicker(day, month, year, linked_date, min_linked
}
</script>
{/literal}