Repository: ambari Updated Branches: refs/heads/trunk bd3aea50a -> 494ae7a15
AMBARI-8646. Reset Group filter to All if group was deleted.(xiwang) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/494ae7a1 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/494ae7a1 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/494ae7a1 Branch: refs/heads/trunk Commit: 494ae7a15fd78d47bae9ed775b6b3c221aa57495 Parents: 1aff154 Author: Xi Wang <[email protected]> Authored: Wed Dec 10 11:22:42 2014 -0800 Committer: Xi Wang <[email protected]> Committed: Wed Dec 10 12:59:08 2014 -0800 ---------------------------------------------------------------------- ambari-web/app/views/main/alert_definitions_view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/494ae7a1/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 425242a..733e214 100644 --- a/ambari-web/app/views/main/alert_definitions_view.js +++ b/ambari-web/app/views/main/alert_definitions_view.js @@ -373,13 +373,16 @@ App.MainAlertDefinitionsView = App.TableView.extend({ onValueChange: function () { var value = this.get('value'); - if (value != undefined ) { + if (value != undefined) { this.get('content').setEach('selected', false); this.set('selected', this.get('content').findProperty('value', value)); var selectEntry = this.get('content').findProperty('value', value); if (selectEntry) { selectEntry.set('selected', true); } + } else { + this.set('value', ''); + this.get('parentView').updateFilter(this.get('column'), '', 'alert_group'); } }.observes('value') }),
