Issue 19728: Format js files org.openbravo.client.application - navbar
authorIván Perdomo <ivan.perdomo@openbravo.com>
Sat, 11 Feb 2012 16:31:48 +0100
changeset 15466 cbfa765a23c4
parent 15465 ba67efc3203a
child 15467 4cfd9a2819c4
Issue 19728: Format js files org.openbravo.client.application - navbar
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-application-menu.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-help-about-widget.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-logout-widget.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-user-profile-widget.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-application-menu.js	Sat Feb 11 16:19:47 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-application-menu.js	Sat Feb 11 16:31:48 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):  ______________________________________.
  ************************************************************************
@@ -31,12 +31,12 @@
   menuConstructor: isc.OBApplicationMenuTreeChild,
 
   // move the menu a few pixels down and a bit to the left
-  placeNear: function(left, top) {
+  placeNear: function (left, top) {
     var parentLeft = this.menuButton.parentElement.getPageLeft();
     return this.Super('placeNear', [parentLeft, top - 1]);
   },
 
-  initWidget: function() {
+  initWidget: function () {
     var theMenu = this;
 
     // make sure that the submenus also
@@ -46,7 +46,7 @@
     this.Super('initWidget', arguments);
   },
 
-  draw: function() {
+  draw: function () {
     if (this.drawStyle) {
       this.drawStyle();
     }
@@ -58,14 +58,13 @@
   //    var superBaseStyle = this.Super('getBaseStyle', arguments).replace(/^\s\s*/, '').replace(/\s\s*$/, '');
   //    return superBaseStyle + colNum;
   //},
-
   // overridden to get reliable custom style name
-  getBaseStyle: function(record, rowNum, colNum){
+  getBaseStyle: function (record, rowNum, colNum) {
     if (!this.getField(colNum)) {
       return '';
     }
     var name = this.getField(colNum).name;
-    return this.baseStyle +  name.substr(0, 1).toUpperCase() + name.substr(1) + 'Field';
+    return this.baseStyle + name.substr(0, 1).toUpperCase() + name.substr(1) + 'Field';
   },
 
   autoDraw: false,
@@ -76,7 +75,7 @@
 
   showing: false,
 
-  show: function() {
+  show: function () {
     this.showing = true;
     this.Super('show', arguments);
     if (this.showStyle) {
@@ -86,16 +85,20 @@
     // this code hides the horizontal line between the menu button and the menu
     var layoutContainer = this.menuButton.parentElement;
     if (!this.selectedHideLayout) {
-      this.selectedHideLayout = isc.Layout.create({styleName: this.hideButtonLineStyle,
-        height: 3, width: layoutContainer.getVisibleWidth() - 2,
+      this.selectedHideLayout = isc.Layout.create({
+        styleName: this.hideButtonLineStyle,
+        height: 3,
+        width: layoutContainer.getVisibleWidth() - 2,
         top: layoutContainer.getPageTop() + layoutContainer.getVisibleHeight() - 2,
-        left: layoutContainer.getPageLeft() + 1, overflow: 'hidden'});
+        left: layoutContainer.getPageLeft() + 1,
+        overflow: 'hidden'
+      });
     }
     this.selectedHideLayout.show();
     this.selectedHideLayout.moveAbove(this);
   },
 
-  hide: function() {
+  hide: function () {
     this.showing = false;
     this.Super('hide', arguments);
     if (this.selectedHideLayout) {
@@ -112,7 +115,7 @@
     }
   },
 
-  itemClick: function(item, colNum) {
+  itemClick: function (item, colNum) {
     var isClassicEnvironment = OB.Utilities.useClassicMode(item.windowId);
     var selectedView = isc.addProperties({}, item);
     if (item.tabId) {
@@ -126,30 +129,67 @@
     } else if (item.recentObject) {
       selectedView = item.recentObject;
       if (!selectedView.viewId) {
-          selectedView.viewId = 'OBClassicWindow';
+        selectedView.viewId = 'OBClassicWindow';
       }
     } else if (item.manualUrl) {
       if (item.manualProcessId) {
-          selectedView = {viewId: 'OBClassicWindow', obManualURL: item.manualUrl, processId: item.manualProcessId, id: item.manualProcessId, command: 'DEFAULT', tabTitle: item.title};
+        selectedView = {
+          viewId: 'OBClassicWindow',
+          obManualURL: item.manualUrl,
+          processId: item.manualProcessId,
+          id: item.manualProcessId,
+          command: 'DEFAULT',
+          tabTitle: item.title
+        };
       } else if (item.processId) {
-          var viewName = item.modal?'OBClassicPopupModal':'OBPopupClassicWindow';
-          selectedView = {viewId: viewName, obManualURL: item.manualUrl, processId: item.processId, id: item.processId, command: 'BUTTON' + item.processId, tabTitle: item.title, popup: true};
+        var viewName = item.modal ? 'OBClassicPopupModal' : 'OBPopupClassicWindow';
+        selectedView = {
+          viewId: viewName,
+          obManualURL: item.manualUrl,
+          processId: item.processId,
+          id: item.processId,
+          command: 'BUTTON' + item.processId,
+          tabTitle: item.title,
+          popup: true
+        };
       } else if (item.formId) {
-          selectedView = {viewId: 'OBClassicWindow', obManualURL: item.manualUrl, id: item.manualUrl, formId: item.formId, command: 'DEFAULT', tabTitle: item.title};
+        selectedView = {
+          viewId: 'OBClassicWindow',
+          obManualURL: item.manualUrl,
+          id: item.manualUrl,
+          formId: item.formId,
+          command: 'DEFAULT',
+          tabTitle: item.title
+        };
       } else {
-          selectedView = {viewId: 'OBClassicWindow', obManualURL: item.manualUrl, id: item.manualUrl, command: 'DEFAULT', tabTitle: item.title};
+        selectedView = {
+          viewId: 'OBClassicWindow',
+          obManualURL: item.manualUrl,
+          id: item.manualUrl,
+          command: 'DEFAULT',
+          tabTitle: item.title
+        };
       }
     } else if (item.externalUrl) {
-      selectedView = {viewId: 'OBExternalPage', contentsURL: item.externalUrl, id: item.externalUrl, command: 'DEFAULT', tabTitle: item.title};
+      selectedView = {
+        viewId: 'OBExternalPage',
+        contentsURL: item.externalUrl,
+        id: item.externalUrl,
+        command: 'DEFAULT',
+        tabTitle: item.title
+      };
     } else {
-      selectedView = {viewId: item.viewId, tabTitle: item.title};
+      selectedView = {
+        viewId: item.viewId,
+        tabTitle: item.title
+      };
     }
-    
+
     selectedView.icon = item.icon;
     selectedView.type = item.type;
-    
+
     selectedView = isc.addProperties({}, item, selectedView);
-    
+
     OB.RecentUtilities.addRecent('UINAVBA_MenuRecentList', selectedView);
     OB.Layout.ViewManager.openView(selectedView.viewId, selectedView);
   }
@@ -159,11 +199,13 @@
 isc.ClassFactory.defineClass('OBApplicationMenuButton', isc.MenuButton);
 
 isc.OBApplicationMenuButton.addProperties({
-  keyboardShortcutId : 'NavBar_MenuButton',
+  keyboardShortcutId: 'NavBar_MenuButton',
 
-  draw : function() {
-    var me = this;
-    var ksAction = function() {
+  draw: function () {
+    var me = this,
+        ksAction;
+
+    ksAction = function () {
       if (!me.menu.showing) {
         isc.EH.clickMaskClick();
       }
@@ -174,7 +216,7 @@
     this.Super('draw', arguments);
   },
 
-  initWidget: function() {
+  initWidget: function () {
     if (this.initWidgetStyle) {
       this.initWidgetStyle();
     }
@@ -187,7 +229,7 @@
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.ApplicationMenu', this.menu);
   },
 
-  showMenu: function() {
+  showMenu: function () {
     this.setMenuItems();
 
     this.menu.markForRedraw();
@@ -199,7 +241,7 @@
     this.Super('showMenu', arguments);
   },
 
-  getNodeIcon: function(type) {
+  getNodeIcon: function (type) {
     var iconPath;
     if (type === 'window') {
       iconPath = this.nodeIcons.Window;
@@ -239,17 +281,24 @@
 
   setMenuItems: function () {
     var recent = OB.RecentUtilities.getRecentValue('UINAVBA_MenuRecentList');
-    var recentEntries = [], length;
+    var recentEntries = [],
+        length;
     var completeMenuTree, recentIndex;
     if (recent && recent.length > 0) {
       length = recent.length;
       for (recentIndex = 0; recentIndex < length; recentIndex++) {
         var recentEntry = recent[recentIndex];
         if (recentEntry) {
-          recentEntries[recentIndex] = {title: recentEntry.tabTitle, recentObject: recentEntry, type: recentEntry.type};
+          recentEntries[recentIndex] = {
+            title: recentEntry.tabTitle,
+            recentObject: recentEntry,
+            type: recentEntry.type
+          };
         }
       }
-      recentEntries[recent.length] = {isSeparator: true};
+      recentEntries[recent.length] = {
+        isSeparator: true
+      };
     }
     completeMenuTree = recentEntries.concat(this.baseData);
     this.setNodeIcons(completeMenuTree);
@@ -259,14 +308,18 @@
   // is used by selenium, creates a scLocator on the basis of a path passed in
   // as arguments, note that the function does not expect an array as this
   // did not seem to be supported by selenium
-  getSCLocator : function() {
-    var index = 0, path = [], length = arguments.length;
+  getSCLocator: function () {
+    var index = 0,
+        path = [],
+        length = arguments.length;
     for (; index < length; index++) {
       path[index] = arguments[index];
     }
     index = 0;
     var pathLength = path.getLength();
-    var itemIndex = 0, itemsLength = 0, item = null;
+    var itemIndex = 0,
+        itemsLength = 0,
+        item = null;
     var currentMenu = this.menu;
 
     // make sure the data is set
@@ -308,4 +361,4 @@
     return 'scLocator=//' + this.getClassName() + '[ID=\"' + currentMenu.ID + '\"]/body/row[' + searchedIndex + ']/col[1]';
     //return currentMenu.body.getTableElement(searchedIndex);
   }
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-help-about-widget.js	Sat Feb 11 16:19:47 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-help-about-widget.js	Sat Feb 11 16:31:48 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):  ______________________________________.
  ************************************************************************
@@ -28,47 +28,55 @@
 isc.OBHelpAbout.addProperties({
 
   layoutProperties: {},
-  
+
   title: OB.I18N.getLabel('UINAVBA_Help'),
-  
+
   // Set to empty to prevent an icon from being displayed on the button.
   src: '',
-  
+
   showTitle: true,
-  
-  initWidget: function(){
+
+  initWidget: function () {
     OB.TestRegistry.register('org.openbravo.client.application.HelpAboutWidget', this);
     this.Super('initWidget', arguments);
   },
 
-  doShow: function(){
+  doShow: function () {
     this.Super('doShow', arguments);
-    var me = this, focusInFirstHelpItem;
-    focusInFirstHelpItem = function() {
+    var me = this,
+        focusInFirstHelpItem;
+    focusInFirstHelpItem = function () {
       if (me.members[0].members[1]) {
-        me.members[0].members[1].focus(); 
+        me.members[0].members[1].focus();
       }
       if (isc.EH.getFocusCanvas() === me.members[0].members[1]) { // Sometimes the focus is not positioned in the previous step
         return;
       } else {
-        setTimeout(function() { focusInFirstHelpItem(); }, 10);
+        setTimeout(function () {
+          focusInFirstHelpItem();
+        }, 10);
       }
     };
     focusInFirstHelpItem();
   },
-  
-  beforeShow: function(){
+
+  beforeShow: function () {
     // determine if the help should be displayed or not
-    var tabPane = null, aboutLink = null, helpLink = null, helpView = null, dummyFirstField = null, dummyLastField = null;
+    var tabPane = null,
+        aboutLink = null,
+        helpLink = null,
+        helpView = null,
+        dummyFirstField = null,
+        dummyLastField = null;
 
     dummyFirstField = isc.OBFocusButton.create({
-      getFocusTarget: function() {
-        return isc.OBQuickRun.currentQuickRun.members[0].members[isc.OBQuickRun.currentQuickRun.members[0].getMembers().length-2];
+      getFocusTarget: function () {
+        return isc.OBQuickRun.currentQuickRun.members[0].members[isc.OBQuickRun.currentQuickRun.members[0].getMembers().length - 2];
       }
     });
 
     dummyLastField = isc.OBFocusButton.create({
-      getFocusTarget: function() {
+      getFocusTarget: function () {
         return isc.OBQuickRun.currentQuickRun.members[0].members[1];
       }
     });
@@ -76,7 +84,7 @@
     aboutLink = isc.OBHelpAboutLinkButton.create({
       name: 'aboutLink',
       title: OB.I18N.getLabel('UINAVBA_About'),
-      keyPress: function(){
+      keyPress: function () {
         var key = isc.EventHandler.getKey();
         if (key === 'Escape') {
           if (isc.OBQuickRun.currentQuickRun) {
@@ -85,16 +93,16 @@
         }
         return true;
       },
-      action: function(){
+      action: function () {
         isc.OBQuickRun.hide();
         OB.Layout.ClassicOBCompatibility.Popup.open('About', 620, 500, OB.Application.contextUrl + 'ad_forms/about.html', '', window);
       }
     });
-    
+
     helpLink = isc.OBHelpAboutLinkButton.create({
       name: 'helpLink',
       title: OB.I18N.getLabel('UINAVBA_Help'),
-      keyPress: function(){
+      keyPress: function () {
         var key = isc.EventHandler.getKey();
         if (key === 'Escape') {
           if (isc.OBQuickRun.currentQuickRun) {
@@ -103,12 +111,12 @@
         }
         return true;
       },
-      action: function(){
+      action: function () {
         isc.OBQuickRun.hide();
         OB.Layout.ViewManager.openView(helpView.viewId, helpView);
       }
     });
-    
+
     // get the selected tab
     var selectedTab = OB.MainView.TabSet.getSelectedTab();
     if (selectedTab && selectedTab.pane && selectedTab.pane.getHelpView) {
@@ -118,7 +126,7 @@
     // destroy the current members
     if (this.members[0].getMembers()) {
       this.members[0].destroyAndRemoveMembers(this.members[0].getMembers().duplicate());
-    } 
+    }
     if (!tabPane) {
       this.members[0].addMembers([aboutLink]);
     } else {
@@ -134,14 +142,14 @@
     OB.TestRegistry.register('org.openbravo.client.application.HelpAbout.HelpLink', helpLink);
     OB.TestRegistry.register('org.openbravo.client.application.HelpAbout.AboutLink', aboutLink);
   },
-  
+
   members: [isc.VLayout.create({
     height: 1,
-    initWidget: function(){
+    initWidget: function () {
       OB.TestRegistry.register('org.openbravo.client.application.HelpAbout', this);
       this.Super('initWidget', arguments);
     }
   })],
-  
+
   keyboardShortcutId: 'NavBar_OBHelpAbout'
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-logout-widget.js	Sat Feb 11 16:19:47 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-logout-widget.js	Sat Feb 11 16:31:48 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):  ______________________________________.
  ************************************************************************
@@ -22,11 +22,13 @@
 // = OBLogout =
 // The OBLogout implements a widget to logout the application
 isc.OBLogout.addProperties({
-  keyboardShortcutId : 'NavBar_OBLogout',
+  keyboardShortcutId: 'NavBar_OBLogout',
 
-  draw : function() {
-    var me = this;
-    var ksAction = function() {
+  draw: function () {
+    var me = this,
+        ksAction;
+
+    ksAction = function () {
       OB.Utilities.logout();
       return false; //To avoid keyboard shortcut propagation
     };
@@ -34,13 +36,13 @@
     this.Super("draw", arguments);
 
     this.setPrompt(OB.I18N.getLabel('UINAVBA_EndSession'));
-    /* Avoid declare directly "prompt: " in this widget definition.
+/* Avoid declare directly "prompt: " in this widget definition.
        Declared as "setPrompt" inside "draw" function in order to solve issue https://issues.openbravo.com/view.php?id=18192 in FF */
 
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.QuitButton', this);
   },
 
-  click: function() {
+  click: function () {
     var handle = this.getHandle();
     OB.Utilities.logout();
   }
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js	Sat Feb 11 16:19:47 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quick-launch.js	Sat Feb 11 16:31:48 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):  ______________________________________.
  ************************************************************************
@@ -22,7 +22,7 @@
 isc.OBQuickLaunchRecentLinkButton.addProperties({
   recentObject: null,
   prefixLabel: null,
-  action: function(){
+  action: function () {
     OB.RecentUtilities.addRecent(this.recentPropertyName, this.recentObject);
     if (this.recentObject.viewId) {
       OB.Layout.ViewManager.openView(this.recentObject.viewId, this.recentObject);
@@ -34,7 +34,7 @@
       isc.OBQuickRun.currentQuickRun.doHide();
     }
   },
-  initWidget: function() {
+  initWidget: function () {
     if (this.prefixLabel.length > 0) {
       this.title = OB.I18N.getLabel(this.prefixLabel) + ' ' + this.recentObject.tabTitle;
     } else {
@@ -60,25 +60,30 @@
 
 isc.OBQuickLaunch.addProperties({
 
-  draw : function() {
+  draw: function () {
     this.Super("draw", arguments);
     if (this.itemPrompt) {
       this.setPrompt(this.itemPrompt); // itemPrompt declared at quick-launch.js.ftl
-      /* Avoid declare directly "prompt: " in this widget definition.
+/* Avoid declare directly "prompt: " in this widget definition.
          Declared as "setPrompt" inside "draw" function to solve issue https://issues.openbravo.com/view.php?id=18192 in FF */
     }
   },
 
-  beforeShow: function(){
+  beforeShow: function () {
     var valueField = this.members[2].getField('value'),
-      recent = OB.RecentUtilities.getRecentValue(this.recentPropertyName);
+        recent = OB.RecentUtilities.getRecentValue(this.recentPropertyName);
 
     if (recent && recent.length > 0) {
       var newFields = [];
-      var index = 0, recentIndex, length = recent.length;
+      var index = 0,
+          recentIndex, length = recent.length;
       for (recentIndex = 0; recentIndex < length; recentIndex++) {
         if (recent[recentIndex]) {
-          newFields[index] = isc.OBQuickLaunchRecentLinkButton.create({recentObject: recent[recentIndex], prefixLabel: this.prefixLabel, nodeIcons: this.nodeIcons});
+          newFields[index] = isc.OBQuickLaunchRecentLinkButton.create({
+            recentObject: recent[recentIndex],
+            prefixLabel: this.prefixLabel,
+            nodeIcons: this.nodeIcons
+          });
           newFields[index].recentPropertyName = this.recentPropertyName;
           index++;
         }
@@ -96,7 +101,7 @@
 
       this.layout.showMember(this.members[1]);
     }
-    
+
     if (valueField.pickList) {
       valueField.pickList.deselectAllRecords();
     }
@@ -105,7 +110,7 @@
   },
 
   // handle the case that someone entered a url in the quick launch
-  doHide: function(){
+  doHide: function () {
     if (this.members[2].getField('value').getValue() && this.members[2].getField('value').getValue().contains('?')) {
       var params = OB.Utilities.getUrlParameters(this.members[2].getField('value').getValue());
       if (params && params.tabId) {
@@ -116,26 +121,30 @@
     this.Super('doHide', arguments);
   },
 
-  initWidget: function(){
-    var dummyFirstField = isc.OBFocusButton.create({
-      getFocusTarget: function() {
-        return this.parentElement.members[this.parentElement.members.length-2];
+  initWidget: function () {
+    var dummyFirstField, dummyLastField;
+
+    dummyFirstField = isc.OBFocusButton.create({
+      getFocusTarget: function () {
+        return this.parentElement.members[this.parentElement.members.length - 2];
       }
     });
-    var dummyLastField = isc.OBFocusButton.create({
-      getFocusTarget: function() {
+
+    dummyLastField = isc.OBFocusButton.create({
+      getFocusTarget: function () {
         var firstFocusableItem;
         if (this.parentElement.members[1].members.length > 0) {
           firstFocusableItem = this.parentElement.members[1].members[0];
         } else {
-          firstFocusableItem = this.parentElement.members[this.parentElement.members.length-2];
+          firstFocusableItem = this.parentElement.members[this.parentElement.members.length - 2];
         }
         return firstFocusableItem;
       }
     });
-    this.members = [dummyFirstField,
-    isc.VLayout.create({
-      height: 1, //To allow height grow with its contents
+
+    this.members = [dummyFirstField, isc.VLayout.create({
+      // To allow height grow with its contents
+      height: 1,
       visibility: 'hidden'
     }), isc.DynamicForm.create({
       autoFocus: true,
@@ -156,9 +165,9 @@
         pickerIconWidth: OB.Styles.OBFormField.DefaultComboBox.pickerIconWidth,
         // fixes issue https://issues.openbravo.com/view.php?id=15105
         pickListCellHeight: OB.Styles.OBFormField.DefaultComboBox.quickRunPickListCellHeight,
-        recentPropertyName : this.recentPropertyName,
+        recentPropertyName: this.recentPropertyName,
 
-        getControlTableCSS: function(){
+        getControlTableCSS: function () {
           // prevent extra width settings, super class
           // sets width to 0 on purpose
           return 'cursor:default;';
@@ -167,7 +176,7 @@
         selectOnFocus: true,
         textMatchStyle: 'substring',
         width: OB.Styles.OBFormField.DefaultComboBox.quickRunWidth,
-        
+
         // client filtering does not always work great...
         pickListProperties: {
           textMatchStyle: 'substring',
@@ -175,30 +184,30 @@
           bodyStyleName: OB.Styles.OBFormField.DefaultComboBox.pickListProperties.bodyStyleName
         },
         pickListHeaderHeight: 0,
-        
+
         // this is to prevent this issue:
         // http://forums.isomorphic.com/showthread.php?t=17949&goto=newpost
         autoSizePickList: false,
-        
-        getPickListFilterCriteria: function(){
+
+        getPickListFilterCriteria: function () {
           // only filter on identifier
           var criteria = {};
           criteria[OB.Constants.IDENTIFIER] = this.getValue();
           return criteria;
         },
         pickListFields: [{
-            showValueIconOnly: true,
-            name: 'icon',
-            valueIcons: {
-              Process: this.nodeIcons.Process,
-              Report: this.nodeIcons.Report,
-              Form: this.nodeIcons.Form,
-              Window: this.nodeIcons.Window
-            }
-          }, { 
-            name: OB.Constants.IDENTIFIER,
-            displayField: OB.Constants.IDENTIFIER,
-            valueField: OB.Constants.ID
+          showValueIconOnly: true,
+          name: 'icon',
+          valueIcons: {
+            Process: this.nodeIcons.Process,
+            Report: this.nodeIcons.Report,
+            Form: this.nodeIcons.Form,
+            Window: this.nodeIcons.Window
+          }
+        }, {
+          name: OB.Constants.IDENTIFIER,
+          displayField: OB.Constants.IDENTIFIER,
+          valueField: OB.Constants.ID
         }],
         autoFetchData: true,
         titleOrientation: 'top',
@@ -216,7 +225,7 @@
 
         command: this.command,
 
-        pickValue: function(theValue){
+        pickValue: function (theValue) {
           // HACK: set this temporary value to prevent a temporary 
           // display of the db id
           if (!this.getValueMap()) {
@@ -290,7 +299,7 @@
             openObject.icon = record.icon;
 
             openObject = isc.addProperties({}, record, openObject);
-            
+
             OB.Layout.ViewManager.openView(openObject.viewId, openObject);
 
             OB.RecentUtilities.addRecent(this.recentPropertyName, openObject);
@@ -299,7 +308,7 @@
           }
         },
 
-        handleKeyPress: function(){
+        handleKeyPress: function () {
           var result = this.Super('handleKeyPress', arguments);
 
           var key = isc.EH.lastEvent.keyName;
@@ -325,4 +334,4 @@
     return ret;
   }
 
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js	Sat Feb 11 16:19:47 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-quickrun-widget.js	Sat Feb 11 16:31:48 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):  ______________________________________.
  ************************************************************************
@@ -31,13 +31,12 @@
   // The current OBQuickRun widget which is expanded (or null if none is
   // expanded).
   currentQuickRun: null,
-  
+
   // ** {{{ hide }}} **
   // Class method which hides the one visible quick run widget layout (if one is
   // expanded).
-  hide: function(){
-    if (isc.OBQuickRun.currentQuickRun &&
-    isc.OBQuickRun.currentQuickRun.showing) {
+  hide: function () {
+    if (isc.OBQuickRun.currentQuickRun && isc.OBQuickRun.currentQuickRun.showing) {
       var tempQuickRun = isc.OBQuickRun.currentQuickRun;
       this.currentQuickRun = null;
       tempQuickRun.doHide();
@@ -54,52 +53,58 @@
   showFocused: false,
   showDown: false,
   overflow: 'visible',
-  
+
   // ** {{{ layout }}} **
   // The layout which is expanded down when clicking the quick run button.
   layout: null,
-  
+
   // ** {{{ layoutProperties }}} **
   // Properties which are used to configure the layout
   layoutProperties: {},
-  
+
   // ** {{{ members }}} **
   // The members of the layout.
   members: [],
-  
+
   // ** {{{ showing }}} **
   // Is set to true when the layout is showing/visible.
   showing: false,
-  
+
   selectedHideLayout: null,
-  
-  draw: function(){
+
+  draw: function () {
+    var me = this,
+        ksAction;
+
     if (!this.keyboardShortcutId) {
       return this.Super('draw', arguments);
     }
-    var me = this;
-    var ksAction = function(){
+
+    ksAction = function () {
       me.getLayoutContainer().setStyleName('OBNavBarComponentSelected');
       if (!me.showing) {
         isc.EH.clickMaskClick();
       }
-      setTimeout(function() {me.click();}, 10); //setTimeout to avoid delayCall function that manages the focus
+      setTimeout(function () {
+        me.click();
+      }, 10); //setTimeout to avoid delayCall function that manages the focus
       return false; //To avoid keyboard shortcut propagation
     };
+
     OB.KeyboardManager.Shortcuts.set(this.keyboardShortcutId, 'Canvas', ksAction);
     this.Super('draw', arguments);
   },
-  
+
   // ** {{{ initWidget }}} **
   // Creates the layout (invisible as a default).
-  initWidget: function(){
+  initWidget: function () {
     // Always call the superclass implementation when overriding initWidget
     this.Super('initWidget', arguments);
-    
+
     this.computeSetContent();
   },
-  
-  computeSetContent: function() {
+
+  computeSetContent: function () {
     // set some defaults
     var defaultLayoutProperties = {
       styleName: 'OBFlyoutLayout',
@@ -112,7 +117,8 @@
     // compute the height
     if (this.members) {
       defaultLayoutProperties.members = this.members;
-      var computedHeight = 0, i, length = this.members.length;
+      var computedHeight = 0,
+          i, length = this.members.length;
       for (i = 0; i < length; i++) {
         if (this.members[i].height) {
           computedHeight = computedHeight + this.members[i].height;
@@ -132,8 +138,8 @@
     // this.overCanvas = this.layout;
     // this.showOverCanvas = true;
   },
-  
-  resetLayout: function() {
+
+  resetLayout: function () {
     if (this.layout) {
       this.layout.destroy();
       this.layout = null;
@@ -142,7 +148,7 @@
 
   // ** {{{ click }}} **
   // clicking the button shows or hides the layout.
-  click: function(){
+  click: function () {
     if (this.showing) {
       this.doHide();
       return false;
@@ -153,13 +159,13 @@
 
   // 16012: Double click and single click on nav bar flyouts are treated the same
   // https://issues.openbravo.com/view.php?id=16012
-  doubleClick: function(){
+  doubleClick: function () {
     this.click();
   },
 
   // ** {{{ keyPress }}} **
   // handle the escape and enter keys, these should hide the layout.
-  keyPress: function(){
+  keyPress: function () {
     var key = isc.EventHandler.getKey();
     if (key === 'Escape' || key === 'Enter') {
       if (isc.OBQuickRun.currentQuickRun) {
@@ -171,7 +177,7 @@
 
   // ** {{{ doShow }}} **
   // Called to actually show the layout.
-  doShow: function(){
+  doShow: function () {
     // start with clean form values
     // if (this.layout) {
     // for (var i=0; i < this.layout.members.length; i++) {
@@ -203,10 +209,9 @@
       styleName: 'OBNavBarComponentHideLine',
       height: 3,
       width: layoutContainer.getVisibleWidth() - 2,
-      top: layoutContainer.getPageTop() +
-      layoutContainer.getVisibleHeight() -
-      1, 
-      left: layoutContainer.getPageLeft() + 1 , overflow: 'hidden'      
+      top: layoutContainer.getPageTop() + layoutContainer.getVisibleHeight() - 1,
+      left: layoutContainer.getPageLeft() + 1,
+      overflow: 'hidden'
     });
     this.selectedHideLayout.show();
     this.selectedHideLayout.moveAbove(this.layout);
@@ -214,11 +219,11 @@
     this.showing = true;
   },
 
-  getLayoutContainer: function(){
+  getLayoutContainer: function () {
     return this.parentElement;
   },
 
-  getLeftPosition: function(){
+  getLeftPosition: function () {
     return this.parentElement.getPageLeft() - 1;
   },
 
@@ -226,12 +231,11 @@
   // Intended to be overridden, is called just before the layout.show()
   // method
   // is called.
-  beforeShow: function(){
-  },
+  beforeShow: function () {},
 
   // ** {{{ doHide }}} **
   // Hide the expanded layout.
-  doHide: function(){
+  doHide: function () {
     this.hideClickMask();
     this.layout.hide();
 
@@ -256,4 +260,4 @@
       OB.MainView.TabSet.getSelectedTab().pane.tabSelected();
     }
   }
-});
+});
\ No newline at end of file
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-user-profile-widget.js	Sat Feb 11 16:19:47 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/navbar/ob-user-profile-widget.js	Sat Feb 11 16:31:48 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):  ______________________________________.
  ************************************************************************
@@ -25,42 +25,31 @@
 isc.OBUserProfile.addProperties({
 
   layoutProperties: {},
-   
+
   // ** {{{ title }}} **
   //
   // Contains the user name of the user
   title: OB.User.userName,
-  
+
   // ** {{{ src }}} **
   //
   // Set to empty to prevent an icon from being displayed on the button.
   src: '',
-  
+
   // ** {{{ prompt }}} **
   //
   // Shown on hover, shows some user information.
-  prompt: '<b>' + OB.I18N.getLabel('UINAVBA_Role') + '</b>: ' +
-  OB.User.roleName +
-  '<br/>' +
-  '<b>' +
-  OB.I18N.getLabel('UINAVBA_Client') +
-  '</b>: ' +
-  OB.User.clientName +
-  '<br/>' +
-  '<b>' +
-  OB.I18N.getLabel('UINAVBA_Organization') +
-  '</b>: ' +
-  OB.User.organizationName,
+  prompt: '<b>' + OB.I18N.getLabel('UINAVBA_Role') + '</b>: ' + OB.User.roleName + '<br/>' + '<b>' + OB.I18N.getLabel('UINAVBA_Client') + '</b>: ' + OB.User.clientName + '<br/>' + '<b>' + OB.I18N.getLabel('UINAVBA_Organization') + '</b>: ' + OB.User.organizationName,
   hoverWidth: 200,
-  
+
   showTitle: true,
-  
+
   // ** {{{ doShow() }}} **
   //
   // Is called when the forms are shown.
-  doShow: function(){
+  doShow: function () {
     this.initialize();
-    
+
     // reset before showing
     this.roleForm.reset();
     this.roleForm.focusInItem('role');
@@ -69,42 +58,39 @@
     this.passwordForm.setFocusItem('currentPwd');
     this.Super('doShow', arguments);
   },
-  
+
   formActionHandler: 'org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler',
 
   keyboardShortcutId: 'NavBar_OBUserProfile',
-  
-  initWidget: function() {
+
+  initWidget: function () {
     var me = this;
     OB.RemoteCallManager.call(this.formActionHandler, {}, {
       'command': 'data'
-    }, function(req, data, resp) {me.formData = data;});
-    
+    }, function (req, data, resp) {
+      me.formData = data;
+    });
+
     this.Super('initWidget', arguments);
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileButton', this);
   },
-  
+
   // ** {{{ initialize() }}} **
   //
   // Creates the forms, fields and buttons.
-  initialize: function(){
+  initialize: function () {
     if (this.roleForm) {
       return;
     }
-    
-    var me = this, formLayout, newPasswordField, passwordForm, 
-     confirmPasswordField, buttonLayout, currentPasswordField, 
-     roleForm, widgetInstance, comboBoxFieldProperties, roleField, 
-     orgField, warehouseField, languageField, checkboxFieldProperties,
-     defaultField, clientField, tabSet, pwdButtonLayout, 
-     pwdFormLayout, pwdSaveButton, textFieldProperties, 
-     passwordFieldProperties, dummyFirstField, dummyLastField;
-  
+
+    var me = this,
+        formLayout, newPasswordField, passwordForm, confirmPasswordField, buttonLayout, currentPasswordField, roleForm, widgetInstance, comboBoxFieldProperties, roleField, orgField, warehouseField, languageField, checkboxFieldProperties, defaultField, clientField, tabSet, pwdButtonLayout, pwdFormLayout, pwdSaveButton, textFieldProperties, passwordFieldProperties, dummyFirstField, dummyLastField;
+
     OB.Layout.userProfileWidget = this;
-    
+
     // have a pointer to this instance
     widgetInstance = this;
-    
+
     // create a default form field types
     comboBoxFieldProperties = {
       errorOrientation: OB.Styles.OBFormField.DefaultComboBox.errorOrientation,
@@ -117,7 +103,7 @@
       pickListBaseStyle: OB.Styles.OBFormField.DefaultComboBox.pickListBaseStyle,
       pickListTallBaseStyle: OB.Styles.OBFormField.DefaultComboBox.pickListTallBaseStyle,
       pickerIconSrc: OB.Styles.OBFormField.DefaultComboBox.pickerIconSrc,
-      
+
       // without this in chrome the content is sorted according to the id/value
       // not the displayfield
       sortField: 0,
@@ -128,10 +114,10 @@
       pickListProperties: {
         bodyStyleName: OB.Styles.OBFormField.DefaultComboBox.pickListProperties.bodyStyleName
       },
-      
+
       // workaround for this issue:
       // https://issues.openbravo.com/view.php?id=18501
-      setUpPickList : function () {
+      setUpPickList: function () {
         this.Super("setUpPickList", arguments);
         if (this.pickList) {
           this.pickList.setBodyStyleName(this.pickListProperties.bodyStyleName);
@@ -146,22 +132,22 @@
       allowEmptyValue: false,
       defaultToFirstOption: true
     };
-    
+
     roleField = isc.addProperties({
       name: 'role',
       title: OB.I18N.getLabel('UINAVBA_Role')
     }, comboBoxFieldProperties);
-    
+
     orgField = isc.addProperties({
       name: 'organization',
       title: OB.I18N.getLabel('UINAVBA_Organization')
     }, comboBoxFieldProperties);
-    
+
     warehouseField = isc.addProperties({
       name: 'warehouse',
       title: OB.I18N.getLabel('UINAVBA_Warehouse')
     }, comboBoxFieldProperties);
-    
+
     languageField = isc.addProperties({
       name: 'language',
       title: OB.I18N.getLabel('UINAVBA_Language')
@@ -215,24 +201,24 @@
       errorsPreamble: '',
       showInlineErrors: false,
       widgetInstance: me,
-      
-      initWidget: function() {
+
+      initWidget: function () {
         this.Super('initWidget', arguments);
         this.setInitialData(this.widgetInstance.formData);
       },
-      
-      itemKeyPress: function(item, keyName, characterValue){
+
+      itemKeyPress: function (item, keyName, characterValue) {
         if (keyName === 'Escape') {
           if (isc.OBQuickRun.currentQuickRun) {
             isc.OBQuickRun.currentQuickRun.doHide();
           }
         }
-        
+
         this.Super('itemKeyPress', arguments);
       },
-      
+
       localFormData: null,
-      reset: function(){
+      reset: function () {
         // note order is important, first order item then do ValueMaps
         // then do setValues
         // this is needed because the select items will reject values
@@ -245,12 +231,11 @@
         this.setWarehouseValueMap();
         //We set initial values again to set warehouse correctly
         this.setValues(isc.addProperties({}, this.localFormData.initialValues));
-        if(this.getItem('warehouse').getClientPickListData().length > 0 &&
-                !this.getItem('warehouse').getValue()){
-            this.getItem('warehouse').moveToFirstValue();
+        if (this.getItem('warehouse').getClientPickListData().length > 0 && !this.getItem('warehouse').getValue()) {
+          this.getItem('warehouse').moveToFirstValue();
         }
       },
-      setInitialData: function(data){
+      setInitialData: function (data) {
         // order of these statements is important see comments in reset
         // function
         this.localFormData = data;
@@ -267,7 +252,7 @@
         this.setValues(isc.addProperties({}, data.initialValues));
       },
       // updates the dependent combos
-      itemChanged: function(item, newValue){
+      itemChanged: function (item, newValue) {
         this.setValueMaps();
         if (item.name === 'role') {
           if (this.getItem('organization').getClientPickListData().length > 0) {
@@ -281,9 +266,9 @@
           }
         }
       },
-      setValueMaps: function(){
+      setValueMaps: function () {
         var i, role, roleId = this.getValue('role'),
-          length = this.localFormData.role.roles.length;
+            length = this.localFormData.role.roles.length;
         for (i = 0; i < length; i++) {
           role = this.localFormData.role.roles[i];
           if (role.id === roleId) {
@@ -292,9 +277,8 @@
           }
         }
       },
-      setWarehouseValueMap: function() {
-        var i, j, warehouseOrg, role, roleId, roleLength, length, 
-          orgId = this.getItem('organization').getValue();
+      setWarehouseValueMap: function () {
+        var i, j, warehouseOrg, role, roleId, roleLength, length, orgId = this.getItem('organization').getValue();
         if (!orgId) {
           return;
         }
@@ -313,16 +297,16 @@
           }
         }
       },
-      
+
       // call the server to save the information
-      doSave: function(){
+      doSave: function () {
         OB.RemoteCallManager.call(this.widgetInstance.formActionHandler, this.getValues(), {
           'command': 'save'
         }, this.doSaveCallback);
       },
-      
+
       // and reload
-      doSaveCallback: function(rpcResponse, data, rpcRequest){
+      doSaveCallback: function (rpcResponse, data, rpcRequest) {
         // if not success then an error, can not really occur
         // is handled as an exception is returned anyway
         if (data.result === OB.Constants.SUCCESS) {
@@ -330,10 +314,10 @@
           window.location.href = OB.Utilities.getLocationUrlWithoutFragment();
         }
       },
-      
+
       fields: [roleField, clientField, orgField, warehouseField, languageField, defaultField]
     });
-    
+
     // create the form layout which contains both the form and the buttons
     formLayout = isc.VStack.create({
       align: 'center',
@@ -342,10 +326,10 @@
       width: '100%'
     });
     formLayout.addMembers(roleForm);
-    
+
     // pointer to the form
     widgetInstance.roleForm = roleForm;
-    
+
     // create the buttons
     buttonLayout = isc.HStack.create({
       layoutTopMargin: 10,
@@ -357,7 +341,7 @@
     });
     buttonLayout.addMembers(isc.OBFormButton.create({
       title: OB.I18N.getLabel('OBUIAPP_Apply'),
-      click: function(){
+      click: function () {
         roleForm.doSave();
       }
     }));
@@ -366,7 +350,7 @@
       click: isc.OBQuickRun.hide
     }));
     formLayout.addMembers(buttonLayout);
-    
+
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileRole.RoleField', roleForm.getField('role'));
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileRole.OrgField', roleForm.getField('organization'));
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileRole.WarehouseField', roleForm.getField('warehouse'));
@@ -376,7 +360,7 @@
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileRole.Form', roleForm);
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileRole.SaveButton', buttonLayout.members[0]);
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfileRole.CancelButton', buttonLayout.members[1]);
-    
+
     // now create the fields for the password form
     passwordFieldProperties = {
       errorOrientation: OB.Styles.OBFormField.DefaultTextItem.errorOrientation,
@@ -420,43 +404,42 @@
       rightTitleSuffix: '</b>',
       numCols: 1,
       errorOrientation: 'right',
-      
+
       // overridden to pass suppressautofocus to parent
-      addFieldErrors : function (fieldName, errors, showErrors) {
+      addFieldErrors: function (fieldName, errors, showErrors) {
         if (!this.errors) {
           this.errors = {};
         }
-        
+
         this.addValidationError(this.errors, fieldName, errors);
 
         // Don't bother updating hiddenErrors - this will be updated by 
         // showErrors() / showFieldErrors()
-        
-        if (showErrors) { 
+        if (showErrors) {
           this.showFieldErrors(fieldName, true);
         }
       },
 
-      itemKeyPress: function(item, keyName, characterValue){
+      itemKeyPress: function (item, keyName, characterValue) {
         if (keyName === 'Escape') {
           if (isc.OBQuickRun.currentQuickRun) {
             isc.OBQuickRun.currentQuickRun.doHide();
           }
         }
-        
+
         this.Super('itemKeyPress', arguments);
       },
-      
+
       // call the server
       formActionHandler: 'org.openbravo.client.application.navigationbarcomponents.UserInfoWidgetActionHandler',
-      doSave: function(){
+      doSave: function () {
         OB.RemoteCallManager.call(passwordForm.formActionHandler, passwordForm.getValues(), {
           'command': 'changePwd'
         }, passwordForm.doSaveCallback);
       },
-      
+
       // the callback displays an info dialog and then hides the form
-      doSaveCallback: function(rpcResponse, data, rpcRequest){
+      doSaveCallback: function (rpcResponse, data, rpcRequest) {
         var i, length;
         if (data.result === OB.Constants.SUCCESS) {
           isc.OBQuickRun.hide();
@@ -474,17 +457,14 @@
           }
         }
       },
-      
+
       // enable/disable the save button, show an error if the two values
       // are unequal
-      itemChanged: function(item, newValue){
+      itemChanged: function (item, newValue) {
         var currentPwd = this.getValue('currentPwd');
         var newPwd = this.getValue('newPwd');
         var confirmPwd = this.getValue('confirmPwd');
-        if (OB.Utilities.isNonEmptyString(currentPwd) &&
-        OB.Utilities.isNonEmptyString(newPwd) &&
-        OB.Utilities.isNonEmptyString(confirmPwd) &&
-        OB.Utilities.areEqualWithTrim(newPwd, confirmPwd)) {
+        if (OB.Utilities.isNonEmptyString(currentPwd) && OB.Utilities.isNonEmptyString(newPwd) && OB.Utilities.isNonEmptyString(confirmPwd) && OB.Utilities.areEqualWithTrim(newPwd, confirmPwd)) {
           if (pwdSaveButton.isDisabled()) {
             pwdSaveButton.enable();
           }
@@ -501,7 +481,7 @@
       },
       fields: [currentPasswordField, newPasswordField, confirmPasswordField]
     });
-    
+
     // create the layout that holds the form and the buttons
     pwdFormLayout = isc.VStack.create({
       overflow: 'visible',
@@ -510,9 +490,9 @@
       align: 'center'
     });
     pwdFormLayout.addMembers(passwordForm);
-    
+
     widgetInstance.passwordForm = passwordForm;
-    
+
     pwdSaveButton = isc.OBFormButton.create({
       title: OB.I18N.getLabel('OBUIAPP_Apply'),
       action: passwordForm.doSave,
@@ -533,7 +513,7 @@
       click: isc.OBQuickRun.hide
     }));
     pwdFormLayout.addMembers(pwdButtonLayout);
-    
+
     // and create the tabset
     tabSet = isc.TabSet.create({
       paneContainerOverflow: 'visible',
@@ -558,7 +538,7 @@
     widgetInstance.tabSet = tabSet;
 
     dummyFirstField = isc.OBFocusButton.create({
-      getFocusTarget: function() {
+      getFocusTarget: function () {
         var tabSet = this.parentElement.members[1];
         var selectedTabNumber = tabSet.getSelectedTabNumber();
         var length1 = tabSet.getTabPane(selectedTabNumber).members.length - 1;
@@ -568,15 +548,15 @@
     });
 
     dummyLastField = isc.OBFocusButton.create({
-      getFocusTarget: function() {
+      getFocusTarget: function () {
         var tabSet = this.parentElement.members[1];
         var selectedTabNumber = tabSet.getSelectedTabNumber();
         return tabSet.tabBar.members[selectedTabNumber];
       }
     });
-    
+
     this.members = [dummyFirstField, tabSet, dummyLastField];
-    
+
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfile.Tabset', tabSet);
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfilePassword.SaveButton', pwdSaveButton);
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfilePassword.CancelButton', pwdButtonLayout.members[1]);
@@ -584,8 +564,8 @@
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfilePassword.NewPasswordField', passwordForm.getField('newPwd'));
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfilePassword.ConfirmPasswordField', passwordForm.getField('confirmPwd'));
     OB.TestRegistry.register('org.openbravo.client.application.navigationbarcomponents.UserProfilePassword.Form', passwordForm);
-    
+
     this.resetLayout();
     this.computeSetContent();
   }
-});
+});
\ No newline at end of file