Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 c988a4398 -> d6a67cfb9


AMBARI-9760. Host Alerts table: clear filters link doesn't work. (xiwang via 
yusaku)


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

Branch: refs/heads/branch-2.0.0
Commit: d6a67cfb935eef1d3a7fed83825ee93cbc6c410d
Parents: c988a43
Author: Yusaku Sako <yus...@hortonworks.com>
Authored: Mon Feb 23 19:36:36 2015 -0800
Committer: Yusaku Sako <yus...@hortonworks.com>
Committed: Mon Feb 23 19:37:11 2015 -0800

----------------------------------------------------------------------
 ambari-web/app/views/main/host/host_alerts_view.js | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d6a67cfb/ambari-web/app/views/main/host/host_alerts_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host/host_alerts_view.js 
b/ambari-web/app/views/main/host/host_alerts_view.js
index dc88232..80731a7 100644
--- a/ambari-web/app/views/main/host/host_alerts_view.js
+++ b/ambari-web/app/views/main/host/host_alerts_view.js
@@ -236,6 +236,18 @@ App.MainHostAlertsView = App.TableView.extend({
     Em.run.next(this, function () {
       App.tooltip($(".enable-disable-button, .timeago, .alert-text"));
     });
-  }.observes('pageContent.@each')
+  }.observes('pageContent.@each'),
+
+  /**
+   * Run <code>clearFilter</code> in the each child filterView
+   */
+  clearFilters: function() {
+    this.set('filterConditions', []);
+    this.get('childViews').forEach(function(childView) {
+      if (childView['clearFilter']) {
+        childView.clearFilter();
+      }
+    });
+  }
 
 });

Reply via email to