LP#1053074: Editimg MARC Fixed Fields jumps cursor to marc record
authorSimon Hieu Mai <hieu.mai@mnsu.edu>
Mon, 3 Jun 2013 21:45:08 +0000 (17:45 -0400)
committerDan Wells <dbw2@calvin.edu>
Tue, 4 Jun 2013 16:03:21 +0000 (12:03 -0400)
Put the cursor back to the current fixed field after reload
the MARC record table.

Signed-off-by: Simon Hieu Mai <hieu.mai@mnsu.edu>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/xul/staff_client/server/cat/marcedit.js

index 614061f..9e85116 100644 (file)
@@ -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
+    element.select();
 
     return true;
 }