details:   https://code.openbravo.com/erp/devel/pi/rev/d69e1e7d3031
changeset: 20978:d69e1e7d3031
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Tue Aug 13 16:29:35 2013 +0200
summary:   Related to issue 19728: Do more JS code formatting

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
 |  16 +++++-----
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (47 lines):

diff -r 21d0baeb6c99 -r d69e1e7d3031 
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;

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to