aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-01 22:40:09 +0000
committerrub <rub@piwigo.org>2008-10-01 22:40:09 +0000
commit335ccb7418c9e1a8cce216407c3554d492db1761 (patch)
treeb16c012730a2686928fbd6cba55b6092902c8135 /admin/template
parent600e2d87ecc359b3bd202c4b471c042f319e1e2b (diff)
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
Diffstat (limited to 'admin/template')
-rw-r--r--admin/template/goto/include/datepicker.inc.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/template/goto/include/datepicker.inc.tpl b/admin/template/goto/include/datepicker.inc.tpl
index 8eb7016bd..ebd6b0fea 100644
--- a/admin/template/goto/include/datepicker.inc.tpl
+++ b/admin/template/goto/include/datepicker.inc.tpl
@@ -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}
-
-