You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2015/02/24 04:35:07 UTC
ambari git commit: AMABRI-9759. Alerts table: clear filters link
doesn't work for alert groups. (xiwang via yusaku)
Repository: ambari
Updated Branches:
refs/heads/trunk 92b75ea44 -> 150a7118f
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/150a7118
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/150a7118
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/150a7118
Branch: refs/heads/trunk
Commit: 150a7118f12af2e87e6a187e0360b2e561fdd734
Parents: 92b75ea
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Mon Feb 23 19:34:48 2015 -0800
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Mon Feb 23 19:34:48 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/150a7118/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');