STORM-2078: fix bug where worker rows were not redrawing on filter. Now it 
happens on drawCallback (every drw


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/0b861c19
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/0b861c19
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/0b861c19

Branch: refs/heads/master
Commit: 0b861c19152cb3d400bc9f216d9aaa84b8fa60ee
Parents: 3cfa00e
Author: Alessandro Bellina <abell...@yahoo-inc.com>
Authored: Sat Sep 3 15:01:47 2016 -0500
Committer: Alessandro Bellina <abell...@yahoo-inc.com>
Committed: Sat Sep 3 15:01:47 2016 -0500

----------------------------------------------------------------------
 storm-core/src/ui/public/js/script.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/0b861c19/storm-core/src/ui/public/js/script.js
----------------------------------------------------------------------
diff --git a/storm-core/src/ui/public/js/script.js 
b/storm-core/src/ui/public/js/script.js
index 5f312d0..886c34b 100644
--- a/storm-core/src/ui/public/js/script.js
+++ b/storm-core/src/ui/public/js/script.js
@@ -411,6 +411,8 @@ var makeWorkerStatsTable = function (response, elId, 
parentId, type) {
         initComplete: function (){
             // add a "Toggle Components" button
             renderToggleComponents ($(elId + '_filter'), elId);
+        },
+        drawCallback: function (){
             initializeComponents();
         }
     });
@@ -423,11 +425,6 @@ var makeWorkerStatsTable = function (response, elId, 
parentId, type) {
         showComponents(row, !row.child.isShown());
     });
 
-    $(elId + '_paginate').on('click', function(){
-        // when we change pages, re-initialize components
-        initializeComponents();
-    });
-
     $(parentId + ' #toggle-on-components-btn').on('click', 'input', function 
(){
         toggleComponents(elId);
     });

Reply via email to