LP#1053074: Editing MARC Fixed Fields jumps cursor to marc record user/simonmai/marc_fixed_fields
authorSimon Hieu Mai <hieu.mai@mnsu.edu>
Wed, 6 Mar 2013 18:01:55 +0000 (12:01 -0600)
committerSimon Hieu Mai <hieu.mai@mnsu.edu>
Wed, 6 Mar 2013 21:05:56 +0000 (15:05 -0600)
Put the cursor back to the current fixed field after reload
the MARC record table.

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

index 1fbf544..5088a72 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
+    document.getElementById(element.getAttribute('id')).select();
 
     return true;
 }