]> git.koha-community.org Git - koha.git/commit
Bug 11035: Replace shortcut plugin jquery.hotkeys.min.js
authorBlou <philippe.blouin@inlibro.com>
Thu, 10 Oct 2013 17:44:27 +0000 (13:44 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 3 Dec 2013 15:23:37 +0000 (15:23 +0000)
commit39830ac023fb2276ed2fee29913a4ba3fdff9feb
tree801af236abcb1d3fb8833214e544d435a9cab698
parent48b339980e20bdefb21141d537c283d15e267d93
Bug 11035: Replace shortcut plugin jquery.hotkeys.min.js

To old plugin prevents the upgrade to the latest jquery. By replacing
with openjs' shortcut.js, we have now one less hurdle in upgrading
Koha to latest.

Changes:
- removed jquery.hotkeys.min.js
- added shortcut.js
- modified the related includes (doc-head-close.inc and help-top.inc)
- modified the calls in staff-global.js

Regression test:
1) apply the patch
2) in the intranet, test the shortcuts alt-q, alt-r, alt-u.

These are the only affected functionalities.  There is no new functionality.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script. Tested existing
shortcuts for the search bar tabs on various circulation
related pages.

This uses a Javascript under BSD license, I wonder if it
should be listed in the About>licenses section that we
are using it. As Yui is also BSD I assume the license is
compatible.

+/**
+ * http://www.openjs.com/scripts/events/keyboard_shortcuts/
+ * Version : 2.01.B
+ * By Binny V A
+ * License : BSD
+ */

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.hotkeys.min.js [deleted file]
koha-tmpl/intranet-tmpl/lib/jquery/plugins/shortcut.js [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
koha-tmpl/intranet-tmpl/prog/en/includes/help-top.inc
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js