]> git.koha-community.org Git - koha.git/commit
Bug 15844 - Correct JSHint errors in staff-global.js
authorOwen Leonard <oleonard@myacpl.org>
Wed, 17 Feb 2016 14:54:28 +0000 (09:54 -0500)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 26 Feb 2016 15:35:29 +0000 (16:35 +0100)
commit25705bf517b5ad3f6306143ef6c438aec318d8fb
treed6504a8d442b988f14d554d3f6816049fefc8ee4
parent6fa2133a7b82726d7621d5b3da01d64c446f5722
Bug 15844 - Correct JSHint errors in staff-global.js

This patch corrects minor errors in staff-global.js according to
warnings raised by JSHint.

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

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

- Confirm that the "Help" link opens the help window.
- Confirm that audio alerts work with local and remote sound files
- Confirm that the format() method is still working correctly by, for
  instance, opening the detail page for a bibliographic record with
  multiple items and choosing 'Edit -> Delete record' from the menu. The
  error message should read like "2 item(s) are attached to this
  record..."

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as described. No errors with JSHint CLI (6 errors fixed)

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