Bug 9943: activate "Pay selected" button only when at least one fine is selected
authorOwen Leonard <oleonard@myacpl.org>
Fri, 9 Aug 2013 17:43:21 +0000 (13:43 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 8 Sep 2013 07:10:42 +0000 (07:10 +0000)
commit6434f9264ac0415e1e52904dc953a00ee0806491
tree95fb7f05c60fe0f566db946ae567562cb65c4357
parent8363e5440ed2cf0f6976ce1e8a965272089ec887
Bug 9943: activate "Pay selected" button only when at least one fine is selected

If you select no fines but click the "pay selected" button the resulting
screen offers to let you pay against all fines, which is confusing. To
simplify things this patch disables the "pay selected" button if no
lines are selected.

To test, apply the patch and find a patron with outstanding fines. From
the "pay fines" page (members/pay.pl) try selecting and deselecting
checkboxes and using the "select all" and "clear all" links. When no
item is selected the "Pay selected" button should become disabled.
Confirm that the form submits correctly when one or more fines is
selected.

Signed-off-by: Melia Meggs <melia@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Works nicely in my tests.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt