You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2015/03/03 15:21:26 UTC
ambari git commit: AMBARI-9888 Hosts status filter broken. (atkach)
Repository: ambari
Updated Branches:
refs/heads/branch-2.0.0 62f1e7510 -> d83e10b1e
AMBARI-9888 Hosts status filter broken. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d83e10b1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d83e10b1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d83e10b1
Branch: refs/heads/branch-2.0.0
Commit: d83e10b1e5aaf41ee0d742b2068b70ce14280b4c
Parents: 62f1e75
Author: Andrii Tkach <at...@hortonworks.com>
Authored: Tue Mar 3 13:53:26 2015 +0200
Committer: Andrii Tkach <at...@hortonworks.com>
Committed: Tue Mar 3 16:21:17 2015 +0200
----------------------------------------------------------------------
ambari-web/app/views/main/host.js | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/d83e10b1/ambari-web/app/views/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host.js b/ambari-web/app/views/main/host.js
index 3558550..4535c0f 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -803,6 +803,15 @@ App.MainHostView = App.TableView.extend(App.TableServerViewMixin, {
this.get('parentView').updateFilter(category.get('column'), category.get('filterValue'), category.get('type'));
}
},
+
+ /**
+ * set value
+ * @param {string} value
+ */
+ setValue: function (value) {
+ this.set('value', value);
+ },
+
clearFilter: function() {
this.get('categories').setEach('isActive', false);
this.set('value', '');