From 51405bcce471dd38b59425d1b3b6609e1d595572 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 30 Oct 2010 16:25:19 -0400 Subject: [PATCH] Fix for Bug 4963, sys prefs need date hints and/or picker This patch adds the standard date format hint used elsewhere in the interface. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- admin/preferences.pl | 2 ++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/preferences.pl b/admin/preferences.pl index 7fcf5fc647..a161203739 100755 --- a/admin/preferences.pl +++ b/admin/preferences.pl @@ -63,6 +63,8 @@ sub _get_chunk { if ( $options{'class'} && $options{'class'} eq 'password' ) { $chunk->{'input_type'} = 'password'; + } elsif ( $options{'class'} && $options{'class'} eq 'date' ) { + $chunk->{'dateinput'} = 1; } elsif ( $options{'type'} && ( $options{'type'} eq 'opac-languages' || $options{'type'} eq 'staff-languages' ) ) { my $current_languages = { map { +$_, 1 } split( /\s*,\s*/, $value ) }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl index 80035bb28f..b9bfd4f5e4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl @@ -75,7 +75,7 @@ - " name="pref_" id="pref_" class="preference preference-" value="" autocomplete="off" /> + " name="pref_" id="pref_" class="preference preference-" value="" autocomplete="off" />