You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2014/09/23 12:57:52 UTC
git commit: AMBARI-7445. cluster name + background ops icon
disappears after "Add Host". (akovalenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 715ffa834 -> 2be32128d
AMBARI-7445. cluster name + background ops icon disappears after "Add Host". (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2be32128
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2be32128
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2be32128
Branch: refs/heads/trunk
Commit: 2be32128d93d2723195fab392b68d568bae4c7cf
Parents: 715ffa8
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Tue Sep 23 13:55:00 2014 +0300
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Tue Sep 23 13:57:13 2014 +0300
----------------------------------------------------------------------
ambari-web/app/views/main/host.js | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/2be32128/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 f85c88c..3c9a148 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -140,9 +140,13 @@ App.MainHostView = App.TableView.extend(App.TableServerProvider, {
rowsPerPageSelectView: Em.Select.extend({
content: ['10', '25', '50', '100'],
attributeBindings: ['disabled'],
- disabled: function () {
- return !this.get('parentView.filteringComplete');
- }.property('parentView.filteringComplete'),
+ disabled: true,
+
+ disableView: function () {
+ Em.run.next(this, function(){
+ this.set('disabled', !this.get('parentView.filteringComplete'));
+ });
+ }.observes('parentView.filteringComplete'),
change: function () {
this.get('parentView').saveDisplayLength();