[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. ac5161f3dbab7741a0f8ac06098990d7426465f9
Evergreen Git
git at git.evergreen-ils.org
Mon Oct 22 12:06:16 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_3 has been updated
via ac5161f3dbab7741a0f8ac06098990d7426465f9 (commit)
from 9cbd12e03f7107aaa179cd3e1e35c5e66e74a7ce (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 ac5161f3dbab7741a0f8ac06098990d7426465f9
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 39fcca5..1fbf544 100644
--- a/Open-ILS/xul/staff_client/server/cat/marcedit.js
+++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js
@@ -310,7 +310,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);'
}
)
@@ -321,7 +321,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);'
}
)
@@ -332,7 +332,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);'
}
)
@@ -684,13 +684,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