[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 2d83263fcaadde28e4d0ed511b09154653a8ae84
Evergreen Git
git at git.evergreen-ils.org
Mon Oct 22 12:06:34 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_2 has been updated
via 2d83263fcaadde28e4d0ed511b09154653a8ae84 (commit)
from 5cf254fb3e63fb3e700cbfc743fcf5270c8e4d0c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2d83263fcaadde28e4d0ed511b09154653a8ae84
Author: Mark Cooper <markchristophercooper at gmail.com>
Date: Tue Oct 9 21:04:32 2012 -0700
LP#826917: Marc editor, CTRL+F6, F7, F8 no longer working on 2.0+
Updated marcedit.js to recognize F6/7/8 according to codes at:
http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes.
Did not modify behavior (so input focus is not adjusted post record load).
Signed-off-by: Mark Cooper <markchristophercooper at gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js
index 418d0ee..0df3507 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -312,7 +312,7 @@ function my_init() {
{ label : $('catStrings').getString('staff.cat.marcedit.replace_006.label'),
oncommand :
'var e = document.createEvent("KeyEvents");' +
- 'e.initKeyEvent("keypress",1,1,null,1,0,0,0,64,0);' +
+ 'e.initKeyEvent("keypress",1,1,null,1,0,0,0,117,0);' +
'current_focus.inputField.dispatchEvent(e);'
}
)
@@ -323,7 +323,7 @@ function my_init() {
{ label : $('catStrings').getString('staff.cat.marcedit.replace_007.label'),
oncommand :
'var e = document.createEvent("KeyEvents");' +
- 'e.initKeyEvent("keypress",1,1,null,1,0,0,0,65,0);' +
+ 'e.initKeyEvent("keypress",1,1,null,1,0,0,0,118,0);' +
'current_focus.inputField.dispatchEvent(e);'
}
)
@@ -334,7 +334,7 @@ function my_init() {
{ label : $('catStrings').getString('staff.cat.marcedit.replace_008.label'),
oncommand :
'var e = document.createEvent("KeyEvents");' +
- 'e.initKeyEvent("keypress",1,1,null,1,0,0,0,66,0);' +
+ 'e.initKeyEvent("keypress",1,1,null,1,0,0,0,119,0);' +
'current_focus.inputField.dispatchEvent(e);'
}
)
@@ -686,13 +686,13 @@ function createMARCTextbox (element,attrs) {
event.preventDefault();
return false;
}
- } else if (event.keyCode == 64 && event.ctrlKey) { // ctrl + F6
+ } else if (event.keyCode == 117 && event.ctrlKey) { // ctrl + F6
createControlField('006',' ');
loadRecord();
- } else if (event.keyCode == 65 && event.ctrlKey) { // ctrl + F7
+ } else if (event.keyCode == 118 && event.ctrlKey) { // ctrl + F7
createControlField('007',' ');
loadRecord();
- } else if (event.keyCode == 66 && event.ctrlKey) { // ctrl + F8
+ } else if (event.keyCode == 119 && event.ctrlKey) { // ctrl + F8
createControlField('008',' ');
loadRecord();
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/xul/staff_client/server/cat/marcedit.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list