Related to issue 19728: Do more JS code formatting
authorDavid Baz Fayos <david.baz@openbravo.com>
Tue, 13 Aug 2013 16:29:35 +0200
changeset 20978 d69e1e7d3031
parent 20977 21d0baeb6c99
child 20979 d6ba90dc64fa
Related to issue 19728: Do more JS code formatting
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js	Tue Aug 13 08:49:20 2013 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js	Tue Aug 13 16:29:35 2013 +0200
@@ -50,7 +50,7 @@
 
     //Remove all members the widget might have
     //this.canvas.removeMembers(this.canvas.getMembers());
-    //    
+    //
     if (value.characteristics) {
       for (field in value.characteristics) {
         if (value.characteristics.hasOwnProperty(field)) {
@@ -164,7 +164,7 @@
   /**
    * Based on values selected in the tree, returns the ones that are
    * going to be used for visualization and/or filtering:
-   * 
+   *
    *   -Filtering: includes all selected leaf nodes
    *   -Visualization: includes the top in branch fully selected nodes
    */
@@ -412,7 +412,7 @@
 
   /**
    * Criterion obtained queries the text field with the concatenation of all characteristics.
-   * 
+   *
    * It might be changed to query actual table of characteristic values, but this would make it
    * not usable in other views than Product
    */
@@ -449,11 +449,11 @@
           value: inValues
         };
 
-        if (this.selectorWindow
-            && this.selectorWindow.selectorGrid
-            && this.selectorWindow.selectorGrid.dataSource
-            && this.selectorWindow.selectorGrid.dataSource.dataURL !== (OB.Application.contextUrl + 'org.openbravo.model.common.plm/Product')) {
-        //if (this.selectorWindow && this.selectorWindow.selector && this.selectorWindow.selector.selectorDefinitionId === this.productSelectorID) {
+        if (this.selectorWindow //
+        && this.selectorWindow.selectorGrid //
+        && this.selectorWindow.selectorGrid.dataSource //
+        && this.selectorWindow.selectorGrid.dataSource.dataURL !== (OB.Application.contextUrl + 'org.openbravo.model.common.plm/Product')) { //
+          //if (this.selectorWindow && this.selectorWindow.selector && this.selectorWindow.selector.selectorDefinitionId === this.productSelectorID) {
           charCriteria.existsQuery = this.productSelectorHqlExists;
         } else {
           charCriteria.existsQuery = this.defaultHqlExists;