Bug 13233 - Patron search by birth date tooltip broken
authorOwen Leonard <oleonard@myacpl.org>
Tue, 11 Nov 2014 19:55:00 +0000 (14:55 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 16 Nov 2014 15:14:15 +0000 (12:14 -0300)
When the user selects a patron search by birth date a tooltip is
supposed to appear showing the date format requirement. Bug 9811 (Patron
search improvement) changed the ID on which the tooltip depended to
function. This patch corrects it.

To test, apply the patch and go to the Patrons home page in the staff
client. In the header search form select "Date of birth" from the
"search fields" dropdown. This should trigger a tooltip showing the
required date format.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
I confirm the tooltip comeback with this patch.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, no problems found.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc

index 47cd2ad..6ae7a2c 100644 (file)
@@ -56,7 +56,7 @@
 
       <script type="text/javascript">
           [% SET dateformat = Koha.Preference('dateformat') %]
-          $("#searchfields").change(function() {
+          $("#searchfieldstype").change(function() {
               if ( $(this).val() == 'dateofbirth' ) {
                   [% IF dateformat == 'us' %]
                       var MSG_DATE_FORMAT = _("Dates of birth should be entered in the format 'MM/DD/YYYY'");