]> git.koha-community.org Git - koha.git/commit
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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 31 Oct 2013 18:24:30 +0000 (15:24 -0300)
commit75e51cdc63948da19779fd650d191d1a1785bfd7
treee4aa4b863197981b682d6a82a102331487afd878
parent668e9cfcf4b678658a51652f59b527ce5953f2c6
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>
(cherry picked from commit 6434f9264ac0415e1e52904dc953a00ee0806491)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt