details:   https://code.openbravo.com/erp/devel/pi/rev/fe2f579ba9d5
changeset: 20563:fe2f579ba9d5
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Tue Jun 11 16:43:26 2013 +0200
summary:   Related to issue 19728: Do more JS code formatting

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
 |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (20 lines):

diff -r 90592541cd44 -r fe2f579ba9d5 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
      Tue Jun 11 15:59:34 2013 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
      Tue Jun 11 16:43:26 2013 +0200
@@ -433,11 +433,11 @@
 
     // Make sure the number is rounded using the number of decimal digits 
specified in the number typeInstance
     if (isc.isA.String(this.getValue())) {
-        value = OB.Utilities.Number.OBPlainToOBMasked(this.getValue(), 
this.typeInstance.maskNumeric, this.typeInstance.decSeparator, 
this.typeInstance.groupSeparator);
-        this.setValue(OB.Utilities.Number.OBMaskedToJS(value, 
this.typeInstance.decSeparator, this.typeInstance.groupSeparator));
-        if (this.form.setTextualValue) {
-            this.form.setTextualValue(this.name, value, this.typeInstance);
-        }
+      value = OB.Utilities.Number.OBPlainToOBMasked(this.getValue(), 
this.typeInstance.maskNumeric, this.typeInstance.decSeparator, 
this.typeInstance.groupSeparator);
+      this.setValue(OB.Utilities.Number.OBMaskedToJS(value, 
this.typeInstance.decSeparator, this.typeInstance.groupSeparator));
+      if (this.form.setTextualValue) {
+        this.form.setTextualValue(this.name, value, this.typeInstance);
+      }
     }
 
     if (this.grid && this.grid.isEditing && this.grid.isEditing()) {

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to