incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject git commit: AMBARI-3295. Clear host filters when landing on hosts page. (onechiporenko)
Date Fri, 27 Sep 2013 11:18:34 GMT
Updated Branches:
  refs/heads/trunk c900dcaf8 -> 0960fac65


AMBARI-3295. Clear host filters when landing on hosts page. (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/0960fac6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/0960fac6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/0960fac6

Branch: refs/heads/trunk
Commit: 0960fac65d735aadaafeca42fad93b439f3f5402
Parents: c900dca
Author: Oleg Nechiporenko <cv_github@yahoo.com>
Authored: Fri Sep 27 14:10:42 2013 +0300
Committer: Oleg Nechiporenko <cv_github@yahoo.com>
Committed: Fri Sep 27 14:10:42 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host.js | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/0960fac6/ambari-web/app/controllers/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host.js b/ambari-web/app/controllers/main/host.js
index 88bfe5b..fe1852b 100644
--- a/ambari-web/app/controllers/main/host.js
+++ b/ambari-web/app/controllers/main/host.js
@@ -65,21 +65,7 @@ App.MainHostController = Em.ArrayController.extend({
       value: id,
       type: 'multiple'
     };
-
-    var filterConditions = App.db.getFilterConditions(this.get('name'));
-    if (filterConditions) {
-      var component = filterConditions.findProperty('iColumn', column);
-      if (component) {
-        component.value = id;
-      }
-      else {
-        filterConditions.push(filterForComponent);
-      }
-      App.db.setFilterConditions(this.get('name'), filterConditions);
-    }
-    else {
-      App.db.setFilterConditions(this.get('name'), [filterForComponent]);
-    }
+    App.db.setFilterConditions(this.get('name'), [filterForComponent]);
   },
   /**
    * On click callback for delete button


Mime
View raw message