ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject git commit: AMBARI-5218 Strange behavior of collapsed panels during removing properties. (ababiichuk)
Date Wed, 26 Mar 2014 12:37:17 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 1aa731f83 -> 194f1a179


AMBARI-5218 Strange behavior of collapsed panels during removing properties. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 194f1a179b2ab5c5528cd952bc9bce787cd2e4c9
Parents: 1aa731f
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Wed Mar 26 14:35:08 2014 +0200
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Wed Mar 26 14:35:08 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/services_config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/194f1a17/ambari-web/app/views/common/configs/services_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/services_config.js b/ambari-web/app/views/common/configs/services_config.js
index eec38d6..20ca265 100644
--- a/ambari-web/app/views/common/configs/services_config.js
+++ b/ambari-web/app/views/common/configs/services_config.js
@@ -358,7 +358,7 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({
     });
     filteredResult = this.sortByIndex(filteredResult);
     var categoryBlock = $('.' + this.get('category.name') + '>.accordion-body');
-    filteredResult.length ? categoryBlock.show() : categoryBlock.hide();
+    filteredResult.length && !this.get('category.isCollapsed') ? categoryBlock.show()
: categoryBlock.hide();
     return filteredResult;
   }.property('categoryConfigs', 'parentView.filter', 'parentView.columns.@each.selected'),
 


Mime
View raw message