Related to issue 25581: Only refresh if the tabset was hidden
authorAugusto Mauch <augusto.mauch@openbravo.com>
Wed, 12 Feb 2014 17:25:36 +0100
changeset 22031 0b01edfc7c9b
parent 22030 4ea15b8e3510
child 22032 495a35fb404a
Related to issue 25581: Only refresh if the tabset was hidden

Otherwise the refresh is done automatically
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Wed Feb 12 16:37:31 2014 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Wed Feb 12 17:25:36 2014 +0100
@@ -1372,11 +1372,11 @@
         } else {
           if (this.childTabSet.visibility === 'hidden') {
             this.childTabSet.show();
-          }
-          if (tabViewPane.showTabIf && !tabViewPane.data && !tabViewPane.refreshingData && tabViewPane.isVisible()) {
-            // If the child tab does not have data yet, refresh it
-            tabViewPane.refreshingData = true;
-            tabViewPane.refresh();
+            if (tabViewPane.showTabIf && !tabViewPane.data && !tabViewPane.refreshingData && tabViewPane.isVisible()) {
+                // If the child tab does not have data yet, refresh it
+                tabViewPane.refreshingData = true;
+                tabViewPane.refresh();
+              }
           }
           this.childTabSet.tabBar.members[i].show();
           tabViewPane.hidden = false;