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:01:05 +0000 (12:01 -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 e91d40f..adc4cf1 100644 (file)
@@ -870,6 +870,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;
 }