[open-ils-commits] r16898 - trunk/Open-ILS/xul/staff_client/server/cat (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jul 9 11:00:19 EDT 2010


Author: dbs
Date: 2010-07-09 11:00:16 -0400 (Fri, 09 Jul 2010)
New Revision: 16898

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
Restore whitespace consistency (spaces not tabs)


Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js	2010-07-09 14:59:20 UTC (rev 16897)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js	2010-07-09 15:00:16 UTC (rev 16898)
@@ -91,31 +91,31 @@
 
 function swap_editors () {
 
-	dojo.require('MARC.Record');
+    dojo.require('MARC.Record');
 
-	var xe = $('xul-editor');
-	var te = $('text-editor');
+    var xe = $('xul-editor');
+    var te = $('text-editor');
 
-	te.hidden = te.hidden ? false : true;
-	xe.hidden = xe.hidden ? false : true;
+    te.hidden = te.hidden ? false : true;
+    xe.hidden = xe.hidden ? false : true;
 
-	if (te.hidden) {
-		// get the marcxml from the text box
-		var xml_string = new MARC.Record({
-			marcbreaker : $('text-editor-box').value,
-			delimiter : '$'
-		}).toXmlString();
+    if (te.hidden) {
+        // get the marcxml from the text box
+        var xml_string = new MARC.Record({
+            marcbreaker : $('text-editor-box').value,
+            delimiter : '$'
+        }).toXmlString();
 
-		// reset the xml record and rerender it
-		xml_record = new XML( xml_string );
-		loadRecord(xml_record);
-	} else {
-		var xml_string = xml_record.toXMLString();
+        // reset the xml record and rerender it
+        xml_record = new XML( xml_string );
+        loadRecord(xml_record);
+    } else {
+        var xml_string = xml_record.toXMLString();
 
-		// push the xml record into the textbox
-		var rec = new MARC.Record ({ delimiter : '$', marcxml : xml_string });
-		$('text-editor-box').value = rec.toBreaker();
-	}
+        // push the xml record into the textbox
+        var rec = new MARC.Record ({ delimiter : '$', marcxml : xml_string });
+        $('text-editor-box').value = rec.toBreaker();
+    }
 }
 
 function my_init() {
@@ -147,7 +147,7 @@
 
         document.getElementById('save-button').setAttribute('label', window.xulG.save.label);
         document.getElementById('save-button').setAttribute('oncommand',
-			'if ($("xul-editor").hidden) swap_editors(); ' +
+            'if ($("xul-editor").hidden) swap_editors(); ' +
             'mangle_005(); ' + 
             'var xml_string = xml_escape_unicode( xml_record.toXMLString() ); ' + 
             'save_attempt( xml_string ); ' +



More information about the open-ils-commits mailing list