Author: orudyy
Date: Tue Jul 26 13:55:47 2016
New Revision: 1754131

URL: http://svn.apache.org/viewvc?rev=1754131&view=rev
Log:
QPID-7248: [Java Broker] [Web Management Console] Update query browser only 
when query browser tab is active

Modified:
    
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/QueryBrowserTab.js

Modified: 
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/QueryBrowserTab.js
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/QueryBrowserTab.js?rev=1754131&r1=1754130&r2=1754131&view=diff
==============================================================================
--- 
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/QueryBrowserTab.js
 (original)
+++ 
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/QueryBrowserTab.js
 Tue Jul 26 13:55:47 2016
@@ -77,12 +77,12 @@ define(["dojo/parser",
                 {
                     that.queryBrowserWidget.resize();
                 });
-            updater.add(this.queryBrowserWidget);
+            updater.add(this);
         };
 
         QueryBrowserTab.prototype.close = function ()
         {
-            updater.remove(this.queryBrowserWidget);
+            updater.remove(this);
             if (this.queryBrowserWidget)
             {
                 this.queryBrowserWidget.destroyRecursive();
@@ -98,5 +98,13 @@ define(["dojo/parser",
             this.contentPane.destroyRecursive();
         };
 
+        QueryBrowserTab.prototype.update = function()
+        {
+            if (this.contentPane.selected)
+            {
+                this.queryBrowserWidget.update();
+            }
+        };
+
         return QueryBrowserTab;
     });



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to