Bug 15847: Correct JSHint errors in basket.js in the staff client
authorOwen Leonard <oleonard@myacpl.org>
Wed, 17 Feb 2016 17:17:17 +0000 (12:17 -0500)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 26 Feb 2016 15:37:13 +0000 (16:37 +0100)
commit3ad0009ba7f68d76ad616b867d8aaa7792eb93c0
treed072fb09d33f817b8a45d72cea1d125892df6843
parent25705bf517b5ad3f6306143ef6c438aec318d8fb
Bug 15847: Correct JSHint errors in basket.js in the staff client

This patch corrects minor errors in the staff client's basket.js
according to warnings raised by JSHint.

To test, apply the patch and run JSHint on basket.js. No warnings
should be raised.

To confirm that the behavior of the JS is not changed, clear your
browser cache if necessary and:

- Test adding multiple titles to the Cart from staff client search
  results.
- Confirm that adding titles to the Cart triggers a message by the Cart
  link.
- Test clicking the "Cart" link in the header menu when the Cart popup
  is open but behind the main window.
- Testing emptying the Cart.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as described. No warnigns raised with jshint tool

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 2374c0498544803693bf0d833ad982174e21ed73)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/js/basket.js