Issue 19728: Added missing js format changes
authorDavid Baz Fayos <david.baz@openbravo.com>
Tue, 14 Feb 2012 13:59:54 +0100
changeset 15491 a622bc5f7777
parent 15490 4c398edd32ec
child 15492 f4324ff133a7
Issue 19728: Added missing js format changes
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.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/return-material/ob-return-material.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-ui-test.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-utilities-date-test.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-menu-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-dialog-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-messagebar-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-personalization-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-statusbar-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tab-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-toolbar-styles.js
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/test/ob-myopenbravo-test.js
modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-myopenbravo-styles.js
modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-widget-styles.js
modules/org.openbravo.service.integration.google/web/org.openbravo.service.integration.google/js/obsegi-account-association-view.js
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient-labels.js
--- a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js	Tue Feb 14 13:59:54 2012 +0100
@@ -238,7 +238,7 @@
 
 /**
  * Compares two Strings using the operator.
- * If both numbers are negative it compares using the absolute value. 
+ * If both numbers are negative it compares using the absolute value.
  */
 
 function compareWithSign(number1, operator, number2) {
@@ -597,7 +597,7 @@
 }
 
 /**
- * 
+ *
  * @param allowCreditGeneration true if it is allowed to not select any pending payment if actualPayment amount is not
  *        zero.
  * @return true if validations are fine.
--- a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js	Tue Feb 14 13:59:54 2012 +0100
@@ -55,11 +55,11 @@
       invoiceOutstanding = new BigDecimal(String(item.grid.view.parentWindow.views[0].getParentRecord().outstandingAmount));
 
   if (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) !== 0 && (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) !== invoiceOutstanding.compareTo(new BigDecimal("0")))) {
-	  if (!OB.APRM.validateMPPUserWarnedSign) {
-		  OB.APRM.validateMPPUserWarnedSign = true;
-		  isc.warn(OB.I18N.getLabel('APRM_DifferentSignError'));
-	  }
-	  return false;
+    if (!OB.APRM.validateMPPUserWarnedSign) {
+      OB.APRM.validateMPPUserWarnedSign = true;
+      isc.warn(OB.I18N.getLabel('APRM_DifferentSignError'));
+    }
+    return false;
   }
 
   for (indRow = 0; indRow < allRows.length; indRow++) {
@@ -132,4 +132,4 @@
     return false;
   }
   return true;
-};
+};
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Tue Feb 14 13:59:54 2012 +0100
@@ -42,23 +42,22 @@
   // with addUnknownValues (to false) as this will 
   // cause the picklist not to show
   // changeOnKeypress: false,
-
   moveFocusOnPickValue: true,
 
-  hidePickListOnBlur: function() {
-    
+  hidePickListOnBlur: function () {
+
     // when the form gets redrawn the the focus may not be in
     // the item but it is still the item which gets the focus
     // after redrawing
     if (this.form && this.form._isRedrawing && this.form.getFocusItem() === this) {
       return;
     }
-    
+
     this.Super('hidePickListOnBlur', arguments);
   },
-  
+
   // is overridden to keep track that a value has been explicitly picked
-  pickValue: function(value) {
+  pickValue: function (value) {
     this._pickedValue = true;
     this.Super('pickValue', arguments);
     delete this._pickedValue;
@@ -69,7 +68,7 @@
     }
   },
 
-  changed: function(form, item, value) {
+  changed: function (form, item, value) {
     this.Super('changed', arguments);
     // if not picking a value then don't do a fic call
     // otherwise every keypress would result in a fic call
@@ -90,16 +89,17 @@
   // the solution is to keep a separate entries array with the
   // records in the correct order, see also the setEntries/setEntry
   // methods
-  getClientPickListData: function() {
+  getClientPickListData: function () {
     if (this.entries) {
       return this.entries;
     }
     return this.Super('getClientPickListData', arguments);
   },
 
-  setEntries: function(entries) {
-    var length = entries.length, i, id, identifier,
-      valueField = this.getValueFieldName(), valueMap = {};
+  setEntries: function (entries) {
+    var length = entries.length,
+        i, id, identifier, valueField = this.getValueFieldName(),
+        valueMap = {};
     this.entries = [];
     for (i = 0; i < length; i++) {
       id = entries[i][OB.Constants.ID] || '';
@@ -111,9 +111,11 @@
     this.setValueMap(valueMap);
   },
 
-  setEntry: function(id, identifier) {
-    var i, entries = this.entries || [], entry = {}, valueField = this
-        .getValueFieldName(), length = entries.length;
+  setEntry: function (id, identifier) {
+    var i, entries = this.entries || [],
+        entry = {},
+        valueField = this.getValueFieldName(),
+        length = entries.length;
     for (i = 0; i < length; i++) {
       if (entries[i][valueField] === id) {
         return;
@@ -128,7 +130,7 @@
   },
 
   // prevent ids from showing up
-  mapValueToDisplay: function(value) {
+  mapValueToDisplay: function (value) {
     var ret = this.Super('mapValueToDisplay', arguments);
     if (this.valueMap && this.valueMap[value]) {
       return this.valueMap[value];
@@ -148,4 +150,4 @@
     return ret;
   }
 
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js	Tue Feb 14 13:59:54 2012 +0100
@@ -60,7 +60,6 @@
     isc.OBSearchItem.openSearchItem = null;
   };
 }(this)); // window
-
 isc.OBSearchItem.addProperties({
   operator: 'iContains',
   showPickerIcon: true,
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Feb 14 13:59:54 2012 +0100
@@ -493,7 +493,7 @@
       //If the new state does not have any selected records then all the records of the view are deselected
       if (!localState.selected) {
         this.deselectAllRecords();
-      } 
+      }
       // old versions stored selected records in grid view, this can cause
       // problems if record is not selected yet
       delete localState.selected;
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js	Tue Feb 14 13:59:54 2012 +0100
@@ -4,15 +4,15 @@
  * 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
- * under the License. 
- * The Original Code is Openbravo ERP. 
- * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2011 Openbravo SLU 
- * All Rights Reserved. 
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
+ * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
  */
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,45 +11,47 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 module('org.openbravo.client.application.navigationbarcomponents');
 
-test('Basic requirements', function() {
+test('Basic requirements', function () {
   expect(1);
-  ok( OB.RecentUtilities, 'recent utilities defined' );
+  ok(OB.RecentUtilities, 'recent utilities defined');
 });
 
-test('Test user info data read', function() {
-	stop(1000);
+test('Test user info data read', function () {
+  stop(1000);
 
-	expect(16);
-	
-	var callback = function(rpcResponse, data, rpcRequest) {
-		ok(data.language, 'Language present');
-		ok(data.language.value, 'Language value present');
-		ok(data.language.valueMap, 'Language valueMap present');
-		ok(data.language.value, 'Language value present');
-		
-		ok(data.initialValues.role, 'Initial role value set');
-		ok(data.initialValues.client, 'Initial client value set');
-		ok(data.initialValues.organization, 'Initial organization value set');
-		ok(data.initialValues.language, 'Initial language value set');
-		
-		ok(data.role, 'Role set');
-		ok(data.role.value, 'Role value set');
-		ok(data.role.valueMap, 'Role valueMap set');
-		ok(data.role.roles, 'Role info set');
-		ok(data.role.roles.length > 0, 'More than one role present');
-		ok(data.role.roles[0].id, 'Role id set');
-		ok(data.role.roles[0].organizationValueMap, 'Role org value map set');
-		ok(data.role.roles[0].warehouseValueMap, 'Role wh value map set');
+  expect(16);
 
-		start();
-	};
-	var action = 'org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler';
-	OB.RemoteCallManager.call(action, {}, {'command': 'data'}, callback);	
-});
+  var callback = function (rpcResponse, data, rpcRequest) {
+      ok(data.language, 'Language present');
+      ok(data.language.value, 'Language value present');
+      ok(data.language.valueMap, 'Language valueMap present');
+      ok(data.language.value, 'Language value present');
+
+      ok(data.initialValues.role, 'Initial role value set');
+      ok(data.initialValues.client, 'Initial client value set');
+      ok(data.initialValues.organization, 'Initial organization value set');
+      ok(data.initialValues.language, 'Initial language value set');
+
+      ok(data.role, 'Role set');
+      ok(data.role.value, 'Role value set');
+      ok(data.role.valueMap, 'Role valueMap set');
+      ok(data.role.roles, 'Role info set');
+      ok(data.role.roles.length > 0, 'More than one role present');
+      ok(data.role.roles[0].id, 'Role id set');
+      ok(data.role.roles[0].organizationValueMap, 'Role org value map set');
+      ok(data.role.roles[0].warehouseValueMap, 'Role wh value map set');
+
+      start();
+      };
+  var action = 'org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler';
+  OB.RemoteCallManager.call(action, {}, {
+    'command': 'data'
+  }, callback);
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,20 +11,20 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
  */
 module('org.openbravo.client.application');
 
-test('Property Store Exists', function() {
+test('Property Store Exists', function () {
   expect(2);
   ok(OB.PropertyStore, 'PropertyStore is present');
   ok(!OB.PropertyStore.get('abc'), 'Test property is not present (okay)');
 });
 
-test('Set/Get Property', function() {
+test('Set/Get Property', function () {
 
   expect(2);
 
@@ -37,10 +37,10 @@
   propValue = OB.PropertyStore.get(propName);
   same(propValue, testValue, 'Equal values');
   // clear the test property
-    // with a short delay to make sure that the previous set does not interfere
-    // on the server
-    isc.Timer.setTimeout(function() {
-      OB.PropertyStore.set(propName, null);
-    }, 1000);
+  // with a short delay to make sure that the previous set does not interfere
+  // on the server
+  isc.Timer.setTimeout(function () {
+    OB.PropertyStore.set(propName, null);
+  }, 1000);
 
-  });
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-ui-test.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-ui-test.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,37 +11,42 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 module('org.openbravo.client.application');
 
-test('Basic requirements', function() {
+test('Basic requirements', function () {
   expect(2);
-  ok( isc, 'isc object is present' );
-  ok( document.getElementById, 'getElementById' );
+  ok(isc, 'isc object is present');
+  ok(document.getElementById, 'getElementById');
 });
 
-test('Create Canvas' , function(){
+test('Create Canvas', function () {
 
   expect(3);
 
-  var canvasID = 'myCanvas', canvas;
-  var createCanvas = function(isc) {
-    var c = isc.Canvas.newInstance({ID: canvasID, width:'100%', height:'100%'});
-    return c;
-  };
+  var canvasID = 'myCanvas',
+      canvas;
+  var createCanvas = function (isc) {
+      var c = isc.Canvas.newInstance({
+        ID: canvasID,
+        width: '100%',
+        height: '100%'
+      });
+      return c;
+      };
 
   canvas = createCanvas(isc);
   canvas.setBackgroundColor('blue');
 
   ok(typeof canvas !== 'undefined', 'Canvas created');
 
-  ok((function(c){
-       return c.height !== 0 && c.width !== 0;
-     }(canvas)), 'Canvas height and width are not zero');
+  ok((function (c) {
+    return c.height !== 0 && c.width !== 0;
+  }(canvas)), 'Canvas height and width are not zero');
 
   ok(isc.Log.getStackTrace() !== undefined, 'getStackTrace()');
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-utilities-date-test.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-utilities-date-test.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,172 +11,180 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 module('org.openbravo.client.application');
 
-test('OB.Utilities.Date.* functions', function() {
+test('OB.Utilities.Date.* functions', function () {
   expect(4);
 
   var outputText = '';
 
-  ok((function(){
-       var expectedCenturyReference = 50;
-       var successText = 'OB.Utilities.Date.centuryReference has a valid value';
-       var failureText = 'OB.Utilities.Date.centuryReference ';
-       var success = true;
+  ok((function () {
+    var expectedCenturyReference = 50;
+    var successText = 'OB.Utilities.Date.centuryReference has a valid value';
+    var failureText = 'OB.Utilities.Date.centuryReference ';
+    var success = true;
 
-       if (OB.Utilities.Date.centuryReference !== expectedCenturyReference) {
-         success = false;
-       }
+    if (OB.Utilities.Date.centuryReference !== expectedCenturyReference) {
+      success = false;
+    }
 
-       if (success) {
-         outputText = successText;
-       } else {
-         failureText = failureText + ' has a wrong value: ' + OB.Utilities.Date.centuryReference + ' (expected: ' + expectedCenturyReference + '). This could make the following tests fail.';
-         outputText = failureText;
-       }
-       return success;
-     }()), outputText);
+    if (success) {
+      outputText = successText;
+    } else {
+      failureText = failureText + ' has a wrong value: ' + OB.Utilities.Date.centuryReference + ' (expected: ' + expectedCenturyReference + '). This could make the following tests fail.';
+      outputText = failureText;
+    }
+    return success;
+  }()), outputText);
 
-  ok((function(){
-       var i;
-       var successText = 'OB.Utilities.Date.normalizeDisplayFormat works properly';
-       var failureText = 'OB.Utilities.Date.normalizeDisplayFormat failed while eval';
-       var success = true;
-       var normalizedDisplayFormat;
-       var list = [
-         ['DD-MM-YYYY', '%d-%m-%Y'],
-         ['DD-MM-YY', '%d-%m-%y'],
-         ['dd-mm-yyyy', '%d-%m-%Y'],
-         ['dd-mm-yy', '%d-%m-%y'],
-         ['%D-%M-%Y', '%d-%m-%Y'],
-         ['%D-%M-%y', '%d-%m-%y'],
-         ['%d-%m-%Y', '%d-%m-%Y'],
-         ['%d-%m-%y', '%d-%m-%y'],
-         ['%d-%m-%Y hh:mi:ss', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y HH:MI:SS', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y HH24:mi:ss', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y HH24:MI:SS', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y HH:MM:SS', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y HH24:MM:SS', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y %H:%M:%S', '%d-%m-%Y %H:%M:%S'],
-         ['%d-%m-%Y %H.%M.%S', '%d-%m-%Y %H.%M.%S']
-       ];
-       for (i=0; i<list.length; i++) {
-         normalizedDisplayFormat = OB.Utilities.Date.normalizeDisplayFormat(list[i][0]);
-         if (normalizedDisplayFormat !== list[i][1]) {
-           success = false;
-           failureText = failureText + ' normalizeDisplayFormat(\'' + list[i][0] + '\') === \'' + list[i][1] + '\' (returned: ' + normalizedDisplayFormat + ') &';
-         }
-       }
-       if (success) {
-         outputText = successText;
-       } else {
-         failureText = failureText.substring(0,failureText.length-2);
-         outputText = failureText;
-       }
-       return success;
-     }()), outputText);
+  ok((function () {
+    var i;
+    var successText = 'OB.Utilities.Date.normalizeDisplayFormat works properly';
+    var failureText = 'OB.Utilities.Date.normalizeDisplayFormat failed while eval';
+    var success = true;
+    var normalizedDisplayFormat;
+    var list = [
+      ['DD-MM-YYYY', '%d-%m-%Y'],
+      ['DD-MM-YY', '%d-%m-%y'],
+      ['dd-mm-yyyy', '%d-%m-%Y'],
+      ['dd-mm-yy', '%d-%m-%y'],
+      ['%D-%M-%Y', '%d-%m-%Y'],
+      ['%D-%M-%y', '%d-%m-%y'],
+      ['%d-%m-%Y', '%d-%m-%Y'],
+      ['%d-%m-%y', '%d-%m-%y'],
+      ['%d-%m-%Y hh:mi:ss', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y HH:MI:SS', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y HH24:mi:ss', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y HH24:MI:SS', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y HH:MM:SS', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y HH24:MM:SS', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y %H:%M:%S', '%d-%m-%Y %H:%M:%S'],
+      ['%d-%m-%Y %H.%M.%S', '%d-%m-%Y %H.%M.%S']
+    ];
+    for (i = 0; i < list.length; i++) {
+      normalizedDisplayFormat = OB.Utilities.Date.normalizeDisplayFormat(list[i][0]);
+      if (normalizedDisplayFormat !== list[i][1]) {
+        success = false;
+        failureText = failureText + ' normalizeDisplayFormat(\'' + list[i][0] + '\') === \'' + list[i][1] + '\' (returned: ' + normalizedDisplayFormat + ') &';
+      }
+    }
+    if (success) {
+      outputText = successText;
+    } else {
+      failureText = failureText.substring(0, failureText.length - 2);
+      outputText = failureText;
+    }
+    return success;
+  }()), outputText);
 
-  ok((function(){
-       var i;
-       var successText = 'OB.Utilities.Date.OBToJS works properly';
-       var failureText = 'OB.Utilities.Date.OBToJS failed while eval';
-       var success = true;
-       var OBToJS;
-       var list = [
-         ['BadDefinedOBDate', '%d-%m-%Y', 'null'],
-         ['31/12/2010', '%d/%m/%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['31:12:2010', '%d:%m:%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['31.12.2010', '%d.%m.%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['31-12-2010', '%d-%m-%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['12-31-2010', '%m-%d-%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['2010-31-12', '%Y-%d-%m', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['2010-12-31', '%Y-%m-%d', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['01-01-0001', '%d-%m-%Y', (function(){var date = new Date(1, 0, 1, 0, 0, 0, 0); date.setFullYear('1'); return date;}())],
-         ['31-12-10', '%d-%m-%y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['12-31-10', '%m-%d-%y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['10-31-12', '%y-%d-%m', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['10-12-31', '%y-%m-%d', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['01-01-00', '%d-%m-%y', new Date(2000, 0, 1, 0, 0, 0, 0)],
-         ['01-01-01', '%d-%m-%y', new Date(2001, 0, 1, 0, 0, 0, 0)],
-         ['01-01-49', '%d-%m-%y', new Date(2049, 0, 1, 0, 0, 0, 0)],
-         ['01-01-50', '%d-%m-%y', new Date(1950, 0, 1, 0, 0, 0, 0)],
-         ['01-01-99', '%d-%m-%y', new Date(1999, 0, 1, 0, 0, 0, 0)],
-         ['31-12-2010', '%d-%m-%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
-         ['31-12-2010 23:59', '%d-%m-%Y %H:%M', new Date(2010, 11, 31, 23, 59, 0, 0)],
-         ['31-12-2010 23:59:58', '%d-%m-%Y %H:%M:%S', new Date(2010, 11, 31, 23, 59, 58, 0)]
-       ];
-       for (i=0; i<list.length; i++) {
-         OBToJS = OB.Utilities.Date.OBToJS(list[i][0], list[i][1]);
-         if (OBToJS === null) {
-           OBToJS = 'null';
-         }
-         if (OBToJS.toString() !== list[i][2].toString()) {
-           success = false;
-           failureText = failureText + ' OBToJS(\'' + list[i][0] + '\', \'' + list[i][1] + '\') === \'' + list[i][2].toString() + '\' (returned: ' + OBToJS + ') &';
-         }
-       }
-       if (success) {
-         outputText = successText;
-       } else {
-         failureText = failureText.substring(0,failureText.length-2);
-         outputText = failureText;
-       }
-       return success;
-     }()), outputText);
+  ok((function () {
+    var i;
+    var successText = 'OB.Utilities.Date.OBToJS works properly';
+    var failureText = 'OB.Utilities.Date.OBToJS failed while eval';
+    var success = true;
+    var OBToJS;
+    var list = [
+      ['BadDefinedOBDate', '%d-%m-%Y', 'null'],
+      ['31/12/2010', '%d/%m/%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['31:12:2010', '%d:%m:%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['31.12.2010', '%d.%m.%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['31-12-2010', '%d-%m-%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['12-31-2010', '%m-%d-%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['2010-31-12', '%Y-%d-%m', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['2010-12-31', '%Y-%m-%d', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['01-01-0001', '%d-%m-%Y', (function () {
+        var date = new Date(1, 0, 1, 0, 0, 0, 0);
+        date.setFullYear('1');
+        return date;
+      }())],
+      ['31-12-10', '%d-%m-%y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['12-31-10', '%m-%d-%y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['10-31-12', '%y-%d-%m', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['10-12-31', '%y-%m-%d', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['01-01-00', '%d-%m-%y', new Date(2000, 0, 1, 0, 0, 0, 0)],
+      ['01-01-01', '%d-%m-%y', new Date(2001, 0, 1, 0, 0, 0, 0)],
+      ['01-01-49', '%d-%m-%y', new Date(2049, 0, 1, 0, 0, 0, 0)],
+      ['01-01-50', '%d-%m-%y', new Date(1950, 0, 1, 0, 0, 0, 0)],
+      ['01-01-99', '%d-%m-%y', new Date(1999, 0, 1, 0, 0, 0, 0)],
+      ['31-12-2010', '%d-%m-%Y', new Date(2010, 11, 31, 0, 0, 0, 0)],
+      ['31-12-2010 23:59', '%d-%m-%Y %H:%M', new Date(2010, 11, 31, 23, 59, 0, 0)],
+      ['31-12-2010 23:59:58', '%d-%m-%Y %H:%M:%S', new Date(2010, 11, 31, 23, 59, 58, 0)]
+    ];
+    for (i = 0; i < list.length; i++) {
+      OBToJS = OB.Utilities.Date.OBToJS(list[i][0], list[i][1]);
+      if (OBToJS === null) {
+        OBToJS = 'null';
+      }
+      if (OBToJS.toString() !== list[i][2].toString()) {
+        success = false;
+        failureText = failureText + ' OBToJS(\'' + list[i][0] + '\', \'' + list[i][1] + '\') === \'' + list[i][2].toString() + '\' (returned: ' + OBToJS + ') &';
+      }
+    }
+    if (success) {
+      outputText = successText;
+    } else {
+      failureText = failureText.substring(0, failureText.length - 2);
+      outputText = failureText;
+    }
+    return success;
+  }()), outputText);
 
 
-  ok((function(){
-       var i;
-       var successText = 'OB.Utilities.Date.JSToOB works properly';
-       var failureText = 'OB.Utilities.Date.JSToOB failed while eval';
-       var success = true;
-       var JSToOB;
-       var list = [
-         ['BadDefinedJSDate', '%d-%m-%Y', 'null'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%d/%m/%Y', '31/12/2010'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%d:%m:%Y', '31:12:2010'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%d.%m.%Y', '31.12.2010'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%d-%m-%Y', '31-12-2010'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%m-%d-%Y', '12-31-2010'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%Y-%d-%m', '2010-31-12'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%Y-%m-%d', '2010-12-31'],
-         [(function(){var date = new Date(1, 0, 1, 0, 0, 0, 0); date.setFullYear('1'); return date;}()), '%d-%m-%Y', '01-01-0001'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%d-%m-%y', '31-12-10'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%m-%d-%y', '12-31-10'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%y-%d-%m', '10-31-12'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%y-%m-%d', '10-12-31'],
-         [new Date(2000, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-00'],
-         [new Date(2001, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-01'],
-         [new Date(2049, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-49'],
-         [new Date(1950, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-50'],
-         [new Date(1999, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-99'],
-         [new Date(1949, 0, 1, 0, 0, 0, 0), '%d-%m-%y', 'null'],
-         [new Date(2010, 11, 31, 0, 0, 0, 0), '%d-%m-%Y', '31-12-2010'],
-         [new Date(2010, 11, 31, 23, 59, 0, 0), '%d-%m-%Y %H:%M', '31-12-2010 23:59'],
-         [new Date(2010, 11, 31, 23, 59, 58, 0), '%d-%m-%Y %H:%M:%S', '31-12-2010 23:59:58']
-       ];
-       for (i=0; i<list.length; i++) {
-         JSToOB = OB.Utilities.Date.JSToOB(list[i][0], list[i][1]);
-         if (JSToOB === null) {
-           JSToOB = 'null';
-         }
-         if (JSToOB.toString() !== list[i][2].toString()) {
-           success = false;
-           failureText = failureText + ' JSToOB(\'' + list[i][0] + '\', \'' + list[i][1] + '\') === \'' + list[i][2].toString() + '\' (returned: ' + JSToOB + ') &';
-         }
-       }
-       if (success) {
-         outputText = successText;
-       } else {
-         failureText = failureText.substring(0,failureText.length-2);
-         outputText = failureText;
-       }
-       return success;
-     }()), outputText);
-});
+  ok((function () {
+    var i;
+    var successText = 'OB.Utilities.Date.JSToOB works properly';
+    var failureText = 'OB.Utilities.Date.JSToOB failed while eval';
+    var success = true;
+    var JSToOB;
+    var list = [
+      ['BadDefinedJSDate', '%d-%m-%Y', 'null'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%d/%m/%Y', '31/12/2010'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%d:%m:%Y', '31:12:2010'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%d.%m.%Y', '31.12.2010'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%d-%m-%Y', '31-12-2010'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%m-%d-%Y', '12-31-2010'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%Y-%d-%m', '2010-31-12'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%Y-%m-%d', '2010-12-31'],
+      [(function () {
+        var date = new Date(1, 0, 1, 0, 0, 0, 0);
+        date.setFullYear('1');
+        return date;
+      }()), '%d-%m-%Y', '01-01-0001'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%d-%m-%y', '31-12-10'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%m-%d-%y', '12-31-10'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%y-%d-%m', '10-31-12'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%y-%m-%d', '10-12-31'],
+      [new Date(2000, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-00'],
+      [new Date(2001, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-01'],
+      [new Date(2049, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-49'],
+      [new Date(1950, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-50'],
+      [new Date(1999, 0, 1, 0, 0, 0, 0), '%d-%m-%y', '01-01-99'],
+      [new Date(1949, 0, 1, 0, 0, 0, 0), '%d-%m-%y', 'null'],
+      [new Date(2010, 11, 31, 0, 0, 0, 0), '%d-%m-%Y', '31-12-2010'],
+      [new Date(2010, 11, 31, 23, 59, 0, 0), '%d-%m-%Y %H:%M', '31-12-2010 23:59'],
+      [new Date(2010, 11, 31, 23, 59, 58, 0), '%d-%m-%Y %H:%M:%S', '31-12-2010 23:59:58']
+    ];
+    for (i = 0; i < list.length; i++) {
+      JSToOB = OB.Utilities.Date.JSToOB(list[i][0], list[i][1]);
+      if (JSToOB === null) {
+        JSToOB = 'null';
+      }
+      if (JSToOB.toString() !== list[i][2].toString()) {
+        success = false;
+        failureText = failureText + ' JSToOB(\'' + list[i][0] + '\', \'' + list[i][1] + '\') === \'' + list[i][2].toString() + '\' (returned: ' + JSToOB + ') &';
+      }
+    }
+    if (success) {
+      outputText = successText;
+    } else {
+      failureText = failureText.substring(0, failureText.length - 2);
+      outputText = failureText;
+    }
+    return success;
+  }()), outputText);
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-menu-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-menu-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -29,7 +29,7 @@
     form: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/application-menu/iconForm.png',
     externalLink: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/application-menu/iconExternalLink.png',
     view: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/application-menu/iconForm.png',
-    document:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/application-menu/iconDocument.png'
+    document: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/application-menu/iconDocument.png'
   }
 };
 
@@ -51,13 +51,13 @@
   tableStyle: "OBApplicationMenuTreeTable",
   hideButtonLineStyle: 'OBNavBarComponentHideLine',
   submenuOffset: -6,
-  drawStyle: function() {
+  drawStyle: function () {
     //this.setStyleName(this.styleName);
   },
-  showStyle: function() {
+  showStyle: function () {
     this.menuButton.parentElement.setStyleName('OBNavBarComponentSelected');
   },
-  hideStyle: function() {
+  hideStyle: function () {
     this.menuButton.parentElement.setStyleName('OBNavBarComponent');
   }
 });
@@ -87,7 +87,7 @@
   icon: {
     src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/navbar/iconOpenDropDown.png'
   },
-  showMenuStyle: function() {
+  showMenuStyle: function () {
     this.parentElement.setStyleName('OBNavBarComponentSelected');
   }
 });
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -30,7 +30,6 @@
  =======================================================================*/
 // note main layout styling is done a bit differently 
 // as this needs to be set when the layout gets created
-
 // Styling of the main layout containing everything
 OB.Styles.TopLayout = {
   width: '100%',
@@ -73,7 +72,12 @@
 OB.Styles.LoadingPrompt = {
   mainLayoutStyleName: 'OBLoadingPromptModalMask',
   loadingLayoutStyleName: 'OBLoadingPromptLabel',
-  loadingImage: {src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/system/windowLoading.gif', width: 220, height:16}  /* Generated @ http://www.ajaxload.info/ */ /* Indicator type: 'Bar' - Background color: #7F7F7F - Transparent background - Foreground color: #FFFFFF */
+  loadingImage: {
+    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/system/windowLoading.gif',
+    width: 220,
+    height: 16
+  } /* Generated @ http://www.ajaxload.info/ */
+  /* Indicator type: 'Bar' - Background color: #7F7F7F - Transparent background - Foreground color: #FFFFFF */
 };
 
 /* =====================================================================
@@ -122,8 +126,10 @@
 // loading prompt
 // note the loading image is set in the index.html
 isc._orginal_showPrompt = isc.showPrompt;
-isc.showPrompt = function(prompt){
-  var width, height, top, left, props = {}, dialog = isc.Dialog.Prompt, modalTarget;
+isc.showPrompt = function (prompt) {
+  var width, height, top, left, props = {},
+      dialog = isc.Dialog.Prompt,
+      modalTarget;
   if (OB.OBModalTarget) {
     props = {
       showEdges: false,
@@ -137,7 +143,7 @@
     modalTarget = OB.OBModalTarget;
     props.modalTarget = modalTarget;
     isc.Dialog.OBModalTarget = null;
-    
+
     // find the top/left position, center in the modalTarget
     width = dialog.getVisibleWidth();
     height = dialog.getVisibleHeight();
@@ -147,7 +153,6 @@
     props.top = Math.max(Math.round(top), 0);
     props.autoCenter = false;
   }
-  
+
   isc._orginal_showPrompt(prompt, props);
-};
-
+};
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-dialog-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-dialog-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -4,14 +4,14 @@
  * 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
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -30,11 +30,12 @@
   edgeOffsetTop: 2,
   edgeOffsetRight: 2,
   edgeOffsetBottom: 2,
-  showHeaderBackground: false, // part of edges
+  showHeaderBackground: false,
+  // part of edges
   showHeaderIcon: true,
-  isModal : true,
-  showModalMask : true,
-  dragAppearance : 'target',
+  isModal: true,
+  showModalMask: true,
+  dragAppearance: 'target',
 
   // clear backgroundColor and style since corners are rounded
   backgroundColor: null,
@@ -63,9 +64,9 @@
 });
 
 isc.Dialog.changeDefaults('headerLabelDefaults', {
-  wrap : false,
-  width : '100%',
-  inherentWidth : true,
+  wrap: false,
+  width: '100%',
+  inherentWidth: true,
   styleName: 'OBPopupHeaderText',
   align: isc.Canvas.CENTER
 });
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -102,7 +102,8 @@
   cellStyle: 'OBFormField',
   titleStyle: 'OBFormFieldLabel',
   textBoxStyle: 'OBFormFieldSelectInput',
-  pendingTextBoxStyle: null, //'OBFormFieldSelectInputPending',
+  pendingTextBoxStyle: null,
+  //'OBFormFieldSelectInputPending',
   controlStyle: 'OBFormFieldSelectControl',
   pickerIconStyle: 'OBFormFieldSelectPickerIcon',
   pickListBaseStyle: 'OBFormFieldPickListCell',
@@ -112,12 +113,12 @@
   pickerIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/comboBoxPicker.png',
   height: 21,
   pickerIconWidth: 21,
-  pickerIconHeight: 21, 
-  
+  pickerIconHeight: 21,
+
   // note the menu-rollover.png which is the background for selected rows
   // is 20
   pickListCellHeight: 22,
-  
+
   quickRunWidth: 210,
   // fixes issue https://issues.openbravo.com/view.php?id=15105
   quickRunPickListCellHeight: 22,
@@ -172,7 +173,7 @@
     showHover: true,
     height: 15,
     width: 15,
-    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/clear-field.png',    
+    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/clear-field.png',
     prompt: OB.I18N.getLabel('OBUIAPP_ClearIconPrompt')
   },
   newTabIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/ico-to-new-tab.png',
@@ -184,7 +185,8 @@
 isc.OBLinkItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultSearch));
 
 isc.OBLinkButtonItem.addProperties({
-  width: 1, //To allow button be just text width
+  width: 1,
+  //To allow button be just text width
   align: 'left',
   baseStyle: 'OBLinkButtonItem',
   showDown: true,
@@ -204,7 +206,7 @@
   baseWeekendStyle: 'OBDateChooserWeekend',
   baseBottomButtonStyle: 'OBDateChooserBottomButton',
   alternateWeekStyles: false,
-  firstDayOfWeek: 1,  
+  firstDayOfWeek: 1,
 
   showEdges: true,
 
@@ -293,11 +295,12 @@
   edgeOffsetTop: 2,
   edgeOffsetRight: 2,
   edgeOffsetBottom: 2,
-  showHeaderBackground: false, // part of edges
+  showHeaderBackground: false,
+  // part of edges
   showHeaderIcon: true,
-  isModal : true,
-  showModalMask : true,
-  dragAppearance : 'target',
+  isModal: true,
+  showModalMask: true,
+  dragAppearance: 'target',
 
   // clear backgroundColor and style since corners are rounded
   backgroundColor: null,
@@ -323,9 +326,9 @@
 });
 
 isc.OBDateRangeDialog.changeDefaults('headerLabelDefaults', {
-  wrap : false,
-  width : '100%',
-  inherentWidth : true,
+  wrap: false,
+  width: '100%',
+  inherentWidth: true,
   styleName: 'OBPopupHeaderText',
   align: isc.Canvas.CENTER
 });
@@ -436,7 +439,8 @@
 });
 
 isc.OBImageCanvas.addProperties({
-  height: '0px', // Hack to avoid second line be desplaced in Firefox and IE
+  height: '0px',
+  // Hack to avoid second line be desplaced in Firefox and IE
   zoomInCursorSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/system/zoomIn.cur',
   zoomOutCursorSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/system/zoomOut.cur',
   imageNotAvailableSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/imageNotAvailable.png',
@@ -447,7 +451,7 @@
 isc.OBImageItemSmallImageContainer.addProperties({
   styleName: 'OBFormFieldImageInput',
   height: 66,
-  width:'100%',
+  width: '100%',
   align: 'center',
   defaultLayoutAlign: 'center'
 });
@@ -473,7 +477,7 @@
   height: 21,
   uploadIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/upload_icon.png',
   eraseIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/erase_icon.png',
-  initWidgetStyle: function() {
+  initWidgetStyle: function () {
     if (this.buttonType === 'upload') {
       this.setSrc(this.uploadIconSrc);
     } else if (this.buttonType === 'erase') {
@@ -505,7 +509,7 @@
   backgroundColor: 'transparent'
 });
 isc.OBSectionItemButton.addProperties({
-  focusChanged: function() { // "ImgSectionHeader" is not a StatefulCanvas so -Focused- status should be done programmatically
+  focusChanged: function () { // "ImgSectionHeader" is not a StatefulCanvas so -Focused- status should be done programmatically
     if (this.background) {
       if (this.containsFocus()) {
         this.background.setSrc(this.background.src.replace(/(\.)(png)$/, '_Focused.png'));
@@ -523,21 +527,21 @@
  * Attachments Styles
  =======================================================================*/
 
- isc.OBAttachmentsSubmitPopup.addProperties({
+isc.OBAttachmentsSubmitPopup.addProperties({
   hlayoutTopMargin: 10,
   height: 30,
   width: 450,
   align: 'center'
 });
 
- /* =====================================================================
+/* =====================================================================
   * Image Popup Styles
   =======================================================================*/
 
-  isc.OBImageSelector.addProperties({
-   hlayoutTopMargin: 10,
-   hlayoutBottomMargin: 10,
-   height: 30,
-   width: 450,
-   align: 'center'
- });
\ No newline at end of file
+isc.OBImageSelector.addProperties({
+  hlayoutTopMargin: 10,
+  hlayoutBottomMargin: 10,
+  height: 30,
+  width: 450,
+  align: 'center'
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,28 +11,39 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 // Styling properties for a generic grid (ob-grid.js)
 isc.OBGrid.addProperties({
-  editFailedBaseStyle: null, // is done through the additional csstext
+  editFailedBaseStyle: null,
+  // is done through the additional csstext
   editFailedCSSText: 'background-color: red; border-right-color: red; border-bottom-color: red;',
   bodyStyleName: 'OBGridBody',
   baseStyle: 'OBGridCell',
-  baseStyleEdit: 'OBGridCellEdit', // for use in ob-view-grid.js while editing a cell
+  baseStyleEdit: 'OBGridCellEdit',
+  // for use in ob-view-grid.js while editing a cell
   recordStyleError: 'OBGridCellError',
   recordStyleSelectedViewInActive: 'OBGridCellSelectedViewInactive',
   headerBaseStyle: 'OBGridHeaderCell',
   headerBarStyle: 'OBGridHeaderBar',
   headerTitleStyle: 'OBGridHeaderCellTitle',
-  cellPadding: 0, /* Set in the CSS */
+  cellPadding: 0,
+  /* Set in the CSS */
   cellAlign: 'center',
-  sortAscendingImage:{src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridHeader_sortAscending.png', width:7, height:11},
-  sortDescendingImage:{src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridHeader_sortDescending.png', width:7, height:11},
+  sortAscendingImage: {
+    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridHeader_sortAscending.png',
+    width: 7,
+    height: 11
+  },
+  sortDescendingImage: {
+    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridHeader_sortDescending.png',
+    width: 7,
+    height: 11
+  },
   headerMenuButtonConstructor: 'OBGridHeaderImgButton',
   headerButtonConstructor: 'ImgButton',
   headerMenuButtonWidth: 17,
@@ -41,28 +52,29 @@
   editLinkColumnWidth: 58,
 
   summaryRowConstructor: 'OBGridSummary',
-  summaryRowDefaults:{
-    showRollOver:false
+  summaryRowDefaults: {
+    showRollOver: false
   },
   summaryRowHeight: 22,
   summaryRowStyle: 'OBGridSummaryCell',
   summaryRowStyle_sum: 'OBGridSummaryCell_sum',
   summaryRowStyle_avg: 'OBGridSummaryCell_avg',
   summaryRowStyle_count: 'OBGridSummaryCell_count',
-  
+
   progressIconDefaults: {
-      width: 16,
-      height: 16,
-      visibility: 'hidden',
-      src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridButton-progress.gif'  /* Generated @ http://www.ajaxload.info/ */ /* Indicator type: 'Snake' - Background color: #FFE1C0 - Transparent background - Foreground color: #333333 */
+    width: 16,
+    height: 16,
+    visibility: 'hidden',
+    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridButton-progress.gif' /* Generated @ http://www.ajaxload.info/ */
+    /* Indicator type: 'Snake' - Background color: #FFE1C0 - Transparent background - Foreground color: #333333 */
   }
 });
 
 isc.OBGrid.addClassProperties({
-  
+
   defaultColumnWidths: [50, 100, 200],
 
-  getDefaultColumnWidth: function(length) {
+  getDefaultColumnWidth: function (length) {
     if (length <= 1) {
       return isc.OBGrid.defaultColumnWidths[0];
     } else if (length <= 30) {
@@ -83,7 +95,7 @@
 isc.OBGrid.changeDefaults('sorterDefaults', {
   // baseStyle / titleStyle is auto-assigned from headerBaseStyle
   showFocused: false,
-//  src: '[SKIN]ListGrid/header.png',
+  //  src: '[SKIN]ListGrid/header.png',
   src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridHeader_bg.png',
   baseStyle: 'OBGridSorterButton'
 });
@@ -120,13 +132,14 @@
   showFocused: false,
   showFocusedAsOver: true,
   baseStyle: 'OBGridToolStripIcon',
-  genericIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridButton.png', /* Can be: edit - form - cancel - save */
-  initWidgetStyle: function() {
+  genericIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/grid/gridButton.png',
+  /* Can be: edit - form - cancel - save */
+  initWidgetStyle: function () {
     var fileExt = this.genericIconSrc.substring(this.genericIconSrc.lastIndexOf('.'), this.genericIconSrc.length);
     var filePath = this.genericIconSrc.substring(0, this.genericIconSrc.length - fileExt.length) + '-';
     this.setSrc(filePath + this.buttonType + fileExt);
   },
-  setErrorState: function(error) {
+  setErrorState: function (error) {
     var fileExt = this.genericIconSrc.substring(this.genericIconSrc.lastIndexOf('.'), this.genericIconSrc.length);
     var filePath = this.genericIconSrc.substring(0, this.genericIconSrc.length - fileExt.length) + '-';
     if (error) {
@@ -206,4 +219,4 @@
   width: 1,
   height: 21,
   overflow: 'visible'
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-messagebar-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-messagebar-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 
 isc.OBMessageBar.addProperties({
@@ -23,7 +23,7 @@
   width: '100%',
   height: 40,
   overflow: 'visible',
-  setTypeStyle: function(type) {
+  setTypeStyle: function (type) {
     this.mainIcon.setSrc('');
     this.closeIcon.setSrc('');
     this.setStyleName('OBMessageBar_' + type);
@@ -45,8 +45,10 @@
 
 isc.OBMessageBarCloseIcon.addProperties({
   baseStyle: 'OBMessageBarCloseIcon',
-  width: 12, // 10 + 2 of the margin set in the CSS
-  height: 12, // 10 + 2 of the margin set in the CSS
+  width: 12,
+  // 10 + 2 of the margin set in the CSS
+  height: 12,
+  // 10 + 2 of the margin set in the CSS
   align: 'left',
   showRollOver: true,
   showDown: false,
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 // The quick run widget is used for flyouts in the navigation bar
 isc.OBQuickRun.addProperties({
@@ -61,7 +61,7 @@
   // https://issues.openbravo.com/view.php?id=13786
   width: 57,
   separatorHeight: 10,
-  
+
   layoutProperties: {
     width: 250,
     membersMargin: 0 // use custom attribute "separatorHeight" instead
@@ -95,7 +95,8 @@
 
 
 isc.OBQuickLaunchRecentLinkButton.addProperties({
-  width: 1, //To allow button be just text width
+  width: 1,
+  //To allow button be just text width
   align: 'left',
   baseStyle: 'OBQuickLaunchRecentLinkButton',
   showDown: true,
@@ -108,7 +109,8 @@
 });
 
 isc.OBHelpAboutLinkButton.addProperties({
-  width: 1, //To allow button be just text width
+  width: 1,
+  //To allow button be just text width
   align: 'left',
   baseStyle: 'OBHelpAboutLinkButton',
   showDown: true,
@@ -122,11 +124,11 @@
 
 
 isc.OBAlertIcon.addProperties({
-  baseStyle : 'OBNavBarTextButton',
-  alertIcon : {
-    src : OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/navbar/iconAlert.png'
+  baseStyle: 'OBNavBarTextButton',
+  alertIcon: {
+    src: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/navbar/iconAlert.png'
   },
-  iconOrientation : 'left',
-  iconWidth : 11,
-  iconHeight : 13
+  iconOrientation: 'left',
+  iconWidth: 11,
+  iconHeight: 13
 });
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-personalization-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-personalization-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 isc.OBPersonalizationTreeGrid.addProperties({
   bodyStyleName: 'OBGridBody',
@@ -27,7 +27,7 @@
   // icon, set to a small number, should be > 0 (otherwise it it not used)
   // this setting of 2 makes the drag indicator to be 2 pixels to the right also
   openerIconSize: 2,
-  
+
   width: '100%',
   indentSize: 10
 });
@@ -58,12 +58,12 @@
 };
 
 OB.Styles.Personalization.popupButtonLayout = {
-    layoutTopMargin: 20,
-    membersMargin: 10,
-    width: '100%',
-    align: 'center',
-    overflow: 'visible',
-    height: 1
+  layoutTopMargin: 20,
+  membersMargin: 10,
+  width: '100%',
+  align: 'center',
+  overflow: 'visible',
+  height: 1
 };
 
 OB.Styles.Personalization.viewFieldDefaults = {
@@ -81,14 +81,14 @@
 
 OB.Styles.Personalization.Icons = {
   fieldGroup: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/iconFolder.png',
-  field:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/item.png',
-  fieldDisplayLogic:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemDisplayLogic.png',
-  fieldDisplayLogicHidden:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemDisplayLogicHidden.png',
-  fieldHidden:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemHidden.png',
-  fieldRequired:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequired.png',
-  fieldRequiredDisplayLogic:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequiredDisplayLogic.png',
-  fieldRequiredDisplayLogicHidden:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequiredDisplayLogicHidden.png',
-  fieldRequiredHidden:  OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequiredHidden.png'
+  field: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/item.png',
+  fieldDisplayLogic: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemDisplayLogic.png',
+  fieldDisplayLogicHidden: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemDisplayLogicHidden.png',
+  fieldHidden: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemHidden.png',
+  fieldRequired: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequired.png',
+  fieldRequiredDisplayLogic: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequiredDisplayLogic.png',
+  fieldRequiredDisplayLogicHidden: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequiredDisplayLogicHidden.png',
+  fieldRequiredHidden: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/itemRequiredHidden.png'
 };
 
 OB.Styles.Personalization.closeButtonProperties = {
@@ -128,7 +128,7 @@
     buttonProperties: {
       // prevent the orange hats
       customState: 'Inactive',
-      
+
       src: '',
       capSize: 14,
       titleStyle: 'OBTabBarButtonChildTitle'
@@ -139,7 +139,7 @@
   width: '100%',
   height: '100%',
   overflow: 'hidden',
-  
+
   showTabPicker: false,
 
   // get rid of the margin around the content of a pane
@@ -156,6 +156,4 @@
 
   scrollerSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/tab/tabBarButtonChild_OverflowIcon.png',
   pickerButtonSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/tab/tabBarButtonChild_OverflowIconPicker.png'
-};
-
-
+};
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -4,14 +4,14 @@
  * 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
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -31,7 +31,8 @@
   edgeOffsetTop: 2,
   edgeOffsetRight: 2,
   edgeOffsetBottom: 2,
-  showHeaderBackground: false, // part of edges
+  showHeaderBackground: false,
+  // part of edges
   showHeaderIcon: true,
 
   // clear backgroundColor and style since corners are rounded
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -15,7 +15,7 @@
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 OB.Styles.Process = {};
 
@@ -24,4 +24,4 @@
   gridCellHeight: 25,
   iconPinSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/process/iconPin.png',
   buttonLayoutHeight: 80
-};
+};
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 /* ob-form-styles.js */
 
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-statusbar-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-statusbar-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 
 isc.OBStatusBar.addProperties({
@@ -87,8 +87,9 @@
   showRollOver: true,
   showDown: true,
   showFocused: false,
-  genericIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/statusbar/iconButton.png', /* Can be: previous - next - maximize - minimize - restore - close */
-  initWidgetStyle: function() {
+  genericIconSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/statusbar/iconButton.png',
+  /* Can be: previous - next - maximize - minimize - restore - close */
+  initWidgetStyle: function () {
     var fileExt = this.genericIconSrc.substring(this.genericIconSrc.lastIndexOf('.'), this.genericIconSrc.length);
     var filePath = this.genericIconSrc.substring(0, this.genericIconSrc.length - fileExt.length) + '-';
     var buttonType = this.buttonType;
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tab-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tab-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 
 isc.OBTabBarButtonMain.addProperties({
@@ -105,4 +105,4 @@
 
 isc.OBTabBarChild.addProperties({
   styleName: 'OBTabBarChild'
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-toolbar-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-toolbar-styles.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,11 +11,11 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 
 isc.OBToolbar.addProperties({
   width: '100%',
@@ -29,7 +29,7 @@
 isc.OBToolbarIconButton.addProperties({
   width: 30,
   height: 28,
-  menuButtonImage: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/toolbar/iconButton-menu-unfold.png'  /** There is a CSS hack to avoid showing it when no menu available. this.menuButtonImage inside initWidget doesn't run **/
+  menuButtonImage: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/toolbar/iconButton-menu-unfold.png' /** There is a CSS hack to avoid showing it when no menu available. this.menuButtonImage inside initWidget doesn't run **/
 });
 
 isc.OBToolbarTextButton.addProperties({
--- a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/test/ob-myopenbravo-test.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/test/ob-myopenbravo-test.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,36 +11,40 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010-2011 Openbravo SLU
+ * All portions are Copyright (C) 2010-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
-*/
+ */
 module('org.openbravo.client.myob');
 
 var d = {
   'eventType': '',
-  'context': {'adminMode': false}
+  'context': {
+    'adminMode': false
+  }
 };
 
 function checkMissingDbInstanceId(w) {
   var i, widgets = w || OB.MyOB.widgets;
-  for(i = 0; i < widgets.length; i++) {
-    if(!widgets[i].dbInstanceId) { // empty string is 'falsy'
+  for (i = 0; i < widgets.length; i++) {
+    if (!widgets[i].dbInstanceId) { // empty string is 'falsy'
       return true;
     }
   }
   return false;
 }
 
-asyncTest('Create Workspace', function() {
+asyncTest('Create Workspace', function () {
   OB.Layout.ViewManager.createAddStartTab();
 });
 
-asyncTest('Add widget', function() {
+asyncTest('Add widget', function () {
 
-  var post = isc.addProperties({}, d, {'eventType': 'WIDGET_ADDED', 
-                                       'widgets': OB.MyOB.widgets}),
+  var post = isc.addProperties({}, d, {
+    'eventType': 'WIDGET_ADDED',
+    'widgets': OB.MyOB.widgets
+  }),
       widget = isc.addProperties({}, OB.MyOB.widgets[0]);
 
   expect(2);
@@ -50,29 +54,31 @@
 
   OB.MyOB.widgets.push(widget);
 
-  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {},
-    function(rpcResponse, data, rpcRequest) {
+  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {}, function (rpcResponse, data, rpcRequest) {
 
-      equals(data.message.type, 'Success', 'Widget added');
+    equals(data.message.type, 'Success', 'Widget added');
 
-      OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) :
-                        OB.MyOB.widgets; // refreshing widgets
+    OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) : OB.MyOB.widgets; // refreshing widgets
+    ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
 
-      ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
-
-      start(); // restart the flow
-    });
+    start(); // restart the flow
+  });
 });
 
-asyncTest('Move widget', function() {
+asyncTest('Move widget', function () {
 
-  var post = isc.addProperties({}, d, {'eventType':'WIDGET_MOVED',
-                                       'widgets': OB.MyOB.widgets}),
-      tmp = {colNum: 0, rowNum: 0},
+  var post = isc.addProperties({}, d, {
+    'eventType': 'WIDGET_MOVED',
+    'widgets': OB.MyOB.widgets
+  }),
+      tmp = {
+      colNum: 0,
+      rowNum: 0
+      },
       w1 = OB.MyOB.widgets[0],
       w2 = OB.MyOB.widgets[1];
 
-  if(!w1 || !w2) {
+  if (!w1 || !w2) {
     start(); // skip the test
     return;
   }
@@ -88,59 +94,54 @@
 
   ok(!checkMissingDbInstanceId(post.widgets), 'All posted widgets have a dbInstanceId');
 
-  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {},
-    function(rpcResponse, data, rpcRequest) {
+  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {}, function (rpcResponse, data, rpcRequest) {
 
-      equals(data.message.type, 'Success', 'Widget moved');
+    equals(data.message.type, 'Success', 'Widget moved');
 
-      OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) :
-                        OB.MyOB.widgets; // refreshing widgets
+    OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) : OB.MyOB.widgets; // refreshing widgets
+    ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
 
-      ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
-
-      start(); // restart the flow
-    });
+    start(); // restart the flow
+  });
 });
 
-asyncTest('Remove widget', function() {
+asyncTest('Remove widget', function () {
 
-  var post = isc.addProperties({}, d, {'eventType':'WIDGET_REMOVED',
-                                       'widgets': OB.MyOB.widgets}),
+  var post = isc.addProperties({}, d, {
+    'eventType': 'WIDGET_REMOVED',
+    'widgets': OB.MyOB.widgets
+  }),
       removed = OB.MyOB.widgets.splice(-1, 1);
 
   expect(2);
 
-  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {},
-    function(rpcResponse, data, rpcRequest) {
+  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {}, function (rpcResponse, data, rpcRequest) {
 
-      equals(data.message.type, 'Success', 'Widget removed');
+    equals(data.message.type, 'Success', 'Widget removed');
 
-      OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) :
-                        OB.MyOB.widgets; // refreshing widgets
+    OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) : OB.MyOB.widgets; // refreshing widgets
+    ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
 
-      ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
-
-      start(); // restart the flow
-    });
+    start(); // restart the flow
+  });
 });
 
-asyncTest('Get user widgets', function() {
+asyncTest('Get user widgets', function () {
 
-  var post = isc.addProperties({}, d, {'eventType':'RELOAD_WIDGETS',
-                                       'widgets': []});
+  var post = isc.addProperties({}, d, {
+    'eventType': 'RELOAD_WIDGETS',
+    'widgets': []
+  });
 
   expect(2);
 
-  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {},
-    function(rpcResponse, data, rpcRequest) {
+  OB.RemoteCallManager.call('org.openbravo.client.myob.MyOpenbravoActionHandler', post, {}, function (rpcResponse, data, rpcRequest) {
 
-      equals(data.message.type, 'Success', 'Widgets reloaded');
+    equals(data.message.type, 'Success', 'Widgets reloaded');
 
-      OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) :
-                        OB.MyOB.widgets; // refreshing widgets
+    OB.MyOB.widgets = data && data.widgets ? eval(data.widgets) : OB.MyOB.widgets; // refreshing widgets
+    ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
 
-      ok(!checkMissingDbInstanceId(), 'All widgets have a dbInstanceId');
-
-      start(); // restart the flow
-    });
-});
+    start(); // restart the flow
+  });
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-myopenbravo-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-myopenbravo-styles.js	Tue Feb 14 13:59:54 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.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-widget-styles.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.client.myob/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.myob/ob-widget-styles.js	Tue Feb 14 13:59:54 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.service.integration.google/web/org.openbravo.service.integration.google/js/obsegi-account-association-view.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.service.integration.google/web/org.openbravo.service.integration.google/js/obsegi-account-association-view.js	Tue Feb 14 13:59:54 2012 +0100
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2011 Openbravo SLU
+ * All portions are Copyright (C) 2011-2012 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -34,11 +34,10 @@
     return result;
   },
 
-  OK_BUTTON: isc.addProperties({},
-    isc.Dialog.OK, {
-      click: function () {
-        this.topElement.cancelClick();
-        top.location.href= OB.Application.contextUrl + 'org.openbravo.service.integration.google/auth.html?is_association=true';
+  OK_BUTTON: isc.addProperties({}, isc.Dialog.OK, {
+    click: function () {
+      this.topElement.cancelClick();
+      top.location.href = OB.Application.contextUrl + 'org.openbravo.service.integration.google/auth.html?is_association=true';
     }
   }),
 
@@ -53,7 +52,7 @@
       width: '100%'
     });
 
-    if(community) {
+    if (community) {
       this.toolbarButtons = [isc.Dialog.OK];
     } else {
       this.toolbarButtons = [this.OK_BUTTON, isc.Dialog.CANCEL];
--- a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient-labels.js	Tue Feb 14 12:46:18 2012 +0100
+++ b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient-labels.js	Tue Feb 14 13:59:54 2012 +0100
@@ -4,15 +4,15 @@
  * 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
- * under the License. 
- * The Original Code is Openbravo ERP. 
- * The Initial Developer of the Original Code is Openbravo SLU 
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
  * All portions are Copyright (C) 2010-2012 Openbravo SLU
- * All Rights Reserved. 
+ * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
  */
@@ -21,8 +21,8 @@
  * The code below sets all standard Smartclient system labels.
  * For more information see the 'Internationalization and Localization (i18n,l10n)'
  * section of the Smartclient reference.
- * 
- * Note: Smartclient label properties can be class or instance properties. For instance 
+ *
+ * Note: Smartclient label properties can be class or instance properties. For instance
  * properties a call to addProperties needs to be done.
  */