You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by ka...@apache.org on 2016/09/23 02:14:34 UTC
[2/4] storm git commit: STORM-2078: fix bug where worker rows were
not redrawing on filter. Now it happens on drawCallback (every drw
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/c7d5bbbf
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/c7d5bbbf
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/c7d5bbbf
Branch: refs/heads/1.x-branch
Commit: c7d5bbbf1f63f35c9db486d29765697342014088
Parents: cef93ec
Author: Alessandro Bellina <ab...@yahoo-inc.com>
Authored: Sat Sep 3 15:01:47 2016 -0500
Committer: Jungtaek Lim <ka...@gmail.com>
Committed: Fri Sep 23 11:14:01 2016 +0900
----------------------------------------------------------------------
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/c7d5bbbf/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 326a8df..8b59f65 100644
--- a/storm-core/src/ui/public/js/script.js
+++ b/storm-core/src/ui/public/js/script.js
@@ -413,6 +413,8 @@ var makeWorkerStatsTable = function (response, elId, parentId, type) {
initComplete: function (){
// add a "Toggle Components" button
renderToggleComponents ($(elId + '_filter'), elId);
+ },
+ drawCallback: function (){
initializeComponents();
}
});
@@ -425,11 +427,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);
});