Related to issue 19728: Do more JS code formatting
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 29 Feb 2012 14:20:27 +0100
changeset 15665 cfc4e257dc4a
parent 15664 0fce8d2edeac
child 15666 05feefc7fd97
Related to issue 19728: Do more JS code formatting
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.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/utilities/ob-keyboard-manager.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-popup.js
modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-window.js	Wed Feb 29 14:20:27 2012 +0100
@@ -331,4 +331,4 @@
 // Maintained to support recent items which use the old name
 // NOTE: can be removed when the user interface is released in production in Q1 2011
 // at that time the recent items should have been cleaned up
-isc.defineClass('ClassicOBWindow', isc.OBClassicWindow);
+isc.defineClass('ClassicOBWindow', isc.OBClassicWindow);
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js	Wed Feb 29 14:20:27 2012 +0100
@@ -174,7 +174,7 @@
   isSeparator: function (str, position) {
     return str.charAt(position) === '-' || str.charAt(position) === '\\' || str.charAt(position) === '/';
   },
-  
+
   pickerDataChanged: function (picker) {
     this.Super('pickerDataChanged', arguments);
     if (this.form.focusInNextItem) {
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Wed Feb 29 14:20:27 2012 +0100
@@ -1234,7 +1234,6 @@
       } else if (!me.forceFocusedField) {
         // don't set the focus in this case, this happens
         // when moving to a new row in grid editing
-
         if (me.getFocusItem()) {
           me.setFocusInForm();
         }
@@ -1522,7 +1521,7 @@
         return;
       }
     }
-    
+
     // wait for the redraw to be finished before moving the focus 
     if (this.isDirty()) {
       this.delayCall('focusInNextItem', [currentItemName], 100);
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Wed Feb 29 14:20:27 2012 +0100
@@ -299,18 +299,18 @@
     return ret;
   },
 
-  clearFilter: function() {
+  clearFilter: function () {
     // hide the messagebar
     this.view.messageBar.hide();
     this.Super('clearFilter', arguments);
   },
-  
-  filterEditorSubmit: function() {
+
+  filterEditorSubmit: function () {
     // hide the messagebar
     this.view.messageBar.hide();
     this.Super('filterEditorSubmit', arguments);
   },
-  
+
   // destroy the context menu also
   // see why this needs to be done in the 
   // documentation of canvas.contextMenu in Canvas.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalize-form.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-personalize-form.js	Wed Feb 29 14:20:27 2012 +0100
@@ -796,7 +796,10 @@
       // even if the status bar field does not have a value (which it
       // does not have in the form preview)
       getStatusBarFields: function () {
-        var statusBarFields = [[], []],
+        var statusBarFields = [
+          [],
+          []
+        ],
             i, item, value, tmpValue, length = this.statusBarFields.length;
 
         for (i = 0; i < length; i++) {
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-keyboard-manager.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-keyboard-manager.js	Wed Feb 29 14:20:27 2012 +0100
@@ -35,7 +35,6 @@
       ISC = isc,
       keyboardMgr; // Local reference to UrlManager instance
 
-
   function KeyboardManager() {}
 
   KeyboardManager.prototype = {
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-popup.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-popup.js	Wed Feb 29 14:20:27 2012 +0100
@@ -4,7 +4,7 @@
  * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
  * Version 1.1  with a permitted attribution clause; you may not  use this
  * file except in compliance with the License. You  may  obtain  a copy of
- * the License at http://www.openbravo.com/legal/license.html 
+ * the License at http://www.openbravo.com/legal/license.html
  * Software distributed under the License  is  distributed  on  an "AS IS"
  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  * License for the specific  language  governing  rights  and  limitations
--- a/modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js	Wed Feb 29 13:48:46 2012 +0100
+++ b/modules/org.openbravo.client.kernel/src-test/org/openbravo/client/kernel/test/test-compression.js	Wed Feb 29 14:20:27 2012 +0100
@@ -18904,4 +18904,4 @@
       }));
     }
   }
-});
+});
\ No newline at end of file