Bug 7719 - Change state of controls based on whether boxes are checked
authorOwen Leonard <oleonard@myacpl.org>
Fri, 30 Dec 2011 20:27:01 +0000 (15:27 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 20 Mar 2012 10:56:32 +0000 (11:56 +0100)
commit74753b4b69eba4a23a8e37f48bf402482136a367
tree7bfb8e90299f9da57ebf4e3e875ecd3b8b62bf3f
parent3b0d4e04e09f37e8dcbaba71abd47980bfef7059
Bug 7719 - Change state of controls based on whether boxes are checked

Some OPAC interface controls cannot function unless a checkbox is
checked. Examples:

- Placing a hold on multiple items in the cart window or on a list view page
- Adding tags to multiple items in the cart window or on a list view page
- Removing one or more items from the cart window
- Removing one or more items from a list on the list view page
- Adding one or more items to a list from the cart window

This patch moves these controls into a separate div in which links
are enabled or disabled based on whether checkboxes are checked. It
does so on two pages: The lists view page (when viewing the contents
of a list) and in the cart window.

Links which are in their disabled state should not perform any action.
After checking one or more checkboxes the links should become active
and behave normally.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Works in chrome and firefox (latest). Passes tests.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt
koha-tmpl/opac-tmpl/prog/images/delete-shelf-disabled.gif [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/images/place-hold-small-disabled.png [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/images/shelf-delete-disabled.gif [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/images/shelf-new-disabled.gif [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/images/tags-small-disabled.png [new file with mode: 0644]