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


AMABRI-9759. Alerts table: clear filters link doesn't work for alert groups. 
(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/c988a439
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c988a439
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c988a439

Branch: refs/heads/branch-2.0.0
Commit: c988a4398d3b92080f2a579badef9c3899b408eb
Parents: 060aede
Author: Yusaku Sako <yus...@hortonworks.com>
Authored: Mon Feb 23 19:34:48 2015 -0800
Committer: Yusaku Sako <yus...@hortonworks.com>
Committed: Mon Feb 23 19:35:19 2015 -0800

----------------------------------------------------------------------
 ambari-web/app/views/main/alert_definitions_view.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c988a439/ambari-web/app/views/main/alert_definitions_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/alert_definitions_view.js 
b/ambari-web/app/views/main/alert_definitions_view.js
index 05d4186..6b0cecd 100644
--- a/ambari-web/app/views/main/alert_definitions_view.js
+++ b/ambari-web/app/views/main/alert_definitions_view.js
@@ -401,6 +401,8 @@ App.MainAlertDefinitionsView = App.TableView.extend({
       this.set('value', '');
     },
 
+    emptyValue: '',
+
     /**
      * Update list of <code>App.AlertGroup</code> used in the filter
      * @method updateContent
@@ -446,6 +448,7 @@ App.MainAlertDefinitionsView = App.TableView.extend({
         if (selectEntry) {
           selectEntry.set('selected', true);
         }
+        this.get('parentView').updateFilter(this.get('column'), value, 
'alert_group');
       } else {
         this.set('value', '');
         this.get('parentView').updateFilter(this.get('column'), '', 
'alert_group');

Reply via email to