From: Simon Hieu Mai Date: Wed, 6 Mar 2013 18:01:55 +0000 (-0600) Subject: LP#1053074: Editing MARC Fixed Fields jumps cursor to marc record X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bdf375fe83c2a74c501c0d2ada55d2291177a4d9;p=working%2FEvergreen.git LP#1053074: Editing MARC Fixed Fields jumps cursor to marc record Put the cursor back to the current fixed field after reload the MARC record table. Signed-off-by: Simon Mai --- diff --git a/Open-ILS/xul/staff_client/server/cat/marcedit.js b/Open-ILS/xul/staff_client/server/cat/marcedit.js index 1fbf544dd6..5088a720a2 100644 --- a/Open-ILS/xul/staff_client/server/cat/marcedit.js +++ b/Open-ILS/xul/staff_client/server/cat/marcedit.js @@ -828,6 +828,8 @@ function updateFixedFields (element) { xml_record = new XML( xml_string ); if (xml_record..record[0]) xml_record = xml_record..record[0]; loadRecord(); + // Put the cursor back to the current fixed field + document.getElementById(element.getAttribute('id')).select(); return true; }