diff options
Diffstat (limited to 'template/en/default/global/header.html.tmpl')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index af9c8b686..6a52e7840 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -44,7 +44,6 @@ [% IF NOT no_yui %] [% SET yui_css = { - calendar => 1, datatable => 1, button => 1, } %] @@ -182,6 +181,16 @@ } $(document).ready(unhide_language_selector); + // This sets the default parameters for all calendar fields. + $.datepicker.setDefaults({ + dateFormat: "yy-mm-dd", // this is the YYYY-MM-DD format + showButtonPanel: true, // permits to easily select "Today" + // These 3 parameters are useful for localization. + firstDay: 0, // 0 = Sunday, 1 = Monday, etc... + dayNamesMin: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], + monthNames: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] + }); + [%# Make some Bugzilla information available to all scripts. # We don't import every parameter and constant because we # don't want to add a lot of uncached JS to every page. |