Related to issue 19728: Do more JS code formatting
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 07 Jun 2012 22:48:47 +0200
changeset 16787 2990b9682aee
parent 16786 671f7127ff37
child 16788 f4bf0f0adf19
Related to issue 19728: Do more JS code formatting
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalize-form.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js	Thu Jun 07 19:56:16 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-yesno.js	Thu Jun 07 22:48:47 2012 +0200
@@ -55,15 +55,15 @@
   },
   formatPickListValue: function (value, record, field, rowNum, colNum) {
     return OB.Utilities.getYesNoDisplayValue(value);
-  }, 
-  
-  getCriterion: function() {
-	  var criterion = this.Super('getCriterion', arguments);
-	  if (criterion && criterion.value && criterion.value === OB.I18N.labels.OBUIAPP_Yes) {
-		  criterion.value = true;
-	  } else if (criterion && criterion.value && criterion.value === OB.I18N.labels.OBUIAPP_No) {
-		  criterion.value = false;
-	  }
-	  return criterion;
+  },
+
+  getCriterion: function () {
+    var criterion = this.Super('getCriterion', arguments);
+    if (criterion && criterion.value && criterion.value === OB.I18N.labels.OBUIAPP_Yes) {
+      criterion.value = true;
+    } else if (criterion && criterion.value && criterion.value === OB.I18N.labels.OBUIAPP_No) {
+      criterion.value = false;
+    }
+    return criterion;
   }
 });
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js	Thu Jun 07 19:56:16 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalization-treegrid.js	Thu Jun 07 22:48:47 2012 +0200
@@ -47,7 +47,7 @@
   closedIconSuffix: 'closed',
   openIconSuffix: 'open',
   selectionType: 'single',
-  
+
   fields: [{
     name: 'title',
     canHover: true,
@@ -255,7 +255,7 @@
     this.deselectAllRecords();
     this.selectRecord(record);
   },
-  
+
   // overridden to create context menu items specific 
   // for the clicked record
   cellContextClick: function (record, rowNum, colNum) {
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalize-form.js	Thu Jun 07 19:56:16 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalize-form.js	Thu Jun 07 22:48:47 2012 +0200
@@ -699,7 +699,7 @@
       // close when returned
       me.doClose(true);
 
-      personalization = me.getStandardWindow().getClass().personalization;     
+      personalization = me.getStandardWindow().getClass().personalization;
       personalization[me.tabId] = null;
       if (me.getStandardWindow().getClass().personalization.forms) {
         me.getStandardWindow().getClass().personalization.forms[me.tabId] = null;
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js	Thu Jun 07 19:56:16 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js	Thu Jun 07 22:48:47 2012 +0200
@@ -337,4 +337,4 @@
       view.closeClick(true, (data && data.message));
     });
   }
-});
+});
\ No newline at end of file