]> 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)
committerFridolin SOMERS <fridolin.somers@biblibre.com>
Fri, 13 Dec 2013 15:21:23 +0000 (16:21 +0100)
commit212a4aa37188d792f88058c16c412e057246a873
treee779f24d0c7d22843aa664098e034cbd16b7864a
parenta907c28a1e408cc73ab0437d90dca8c861ae08f5
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>
(cherry picked from commit 39830ac023fb2276ed2fee29913a4ba3fdff9feb)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.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