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:20:08 UTC
[2/2] ambari git commit: AMBARI-9888 Hosts status filter broken.
(atkach)
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/c313023b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c313023b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c313023b
Branch: refs/heads/trunk
Commit: c313023bd25d4a0fc1d23be5b6b1931638feb20c
Parents: d27807b
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:19:14 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/c313023b/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 fd91cf8..f2d4002 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -798,6 +798,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', '');