]> git.koha-community.org Git - koha.git/commit
Bug 12893 - 'Clear date' links on start and expiration hold date in staff not working
authorOwen Leonard <oleonard@myacpl.org>
Wed, 17 Sep 2014 18:48:49 +0000 (14:48 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 21 Nov 2014 18:59:36 +0000 (15:59 -0300)
commita53515084f77d5c423ffe3645f78aaca05cb2c5b
tree562d4828c3e3d349d7dee2248aa9676afd42577f
parent260c423be8e59cfbaabeead33634a8a435ac05bc
Bug 12893 - 'Clear date' links on start and expiration hold date in staff not working

I introduced this bug with my patch for Bug 8181. In changing the way
the date picker widgets worked I changed the ID the "clear date"
javascript was looking for, so it stopped working.

This patch corrects it and improves the JavaScript by moving it out of
the HTML markup.

This patch also makes some minor HTML validity corrections: escaping
ampersands and removing a "size" attribute from a hidden form field.

To test, you should have the AllowHoldDateInFuture system preference
enabled. Place a hold in the staff client for a patron and confirm that
you can choose a "hold starts on" date and a "hold expires on" date and
that the respective "clear date" links work correctly for each one.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt