Formmating. Replazing tab characters by spaces
authorAdrián Romero <adrianromero@openbravo.com>
Tue, 26 Jul 2011 11:32:30 +0200
changeset 13262 8d47e508114a
parent 13261 b96134a85d2d
child 13263 cbae5849cd57
Formmating. Replazing tab characters by spaces
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Tue Jul 26 10:38:01 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Tue Jul 26 11:32:30 2011 +0200
@@ -236,17 +236,17 @@
   },
   
   enableNoteSection: function(enable){
-	    if (!this.noteSection) {
-	      return;
-	    }
-	    if (enable) {
-	      this.noteSection.setRecordInfo(this.view.entity, this.getValue(OB.Constants.ID));
-	      this.noteSection.collapseSection(true);
-	      this.noteSection.refresh();
-	      this.noteSection.show();
-	    } else {
-	      this.noteSection.hide();
-	    }
+      if (!this.noteSection) {
+        return;
+      }
+      if (enable) {
+        this.noteSection.setRecordInfo(this.view.entity, this.getValue(OB.Constants.ID));
+        this.noteSection.collapseSection(true);
+        this.noteSection.refresh();
+        this.noteSection.show();
+      } else {
+        this.noteSection.hide();
+      }
   },
   
   enableLinkedItemSection: function(enable){
@@ -751,7 +751,7 @@
   },
   
   processColumnValue: function(columnName, columnValue, editValues){
-  	// Modifications in this method should go also in setColumnValuesInEditValues because both almost do the same
+    // Modifications in this method should go also in setColumnValuesInEditValues because both almost do the same
     var typeInstance;
     var assignValue;
     var assignClassicValue;
@@ -789,11 +789,11 @@
     // Adjust to formatting if exists value and classicValue. 
     oldValue = this.getValue(field.name);
     if (field.typeInstance && field.typeInstance.parseInput && field.typeInstance.editFormatter) {
-    	assignValue = field.typeInstance.parseInput(field.typeInstance.editFormatter(columnValue.value));
-    	assignClassicValue = field.typeInstance.editFormatter(field.typeInstance.parseInput(columnValue.classicValue));
+      assignValue = field.typeInstance.parseInput(field.typeInstance.editFormatter(columnValue.value));
+      assignClassicValue = field.typeInstance.editFormatter(field.typeInstance.parseInput(columnValue.classicValue));
     } else {
-    	assignValue = columnValue.value;
-    	assignClassicValue = columnValue.classicValue;
+      assignValue = columnValue.value;
+      assignClassicValue = columnValue.classicValue;
     }
     
     if (columnValue.value && (columnValue.value === 'null' || columnValue.value === '')) {
@@ -862,9 +862,9 @@
   },
   
   setColumnValuesInEditValues: function(columnName, columnValue, editValues){
-  	// Modifications in this method should go also in processColumnValue because both almost do the same
-  	var assignClassicValue;
-  	var typeInstance;
+    // Modifications in this method should go also in processColumnValue because both almost do the same
+    var assignClassicValue;
+    var typeInstance;
 
     // no editvalues even anymore, go away
     if (!editValues) {