You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2014/01/15 17:50:54 UTC

git commit: AMBARI-4304 When filtering on a prop, if the prop is in adv, custom, etc, we should expand section.(ababiichuk)

Updated Branches:
  refs/heads/trunk e10d9c60d -> d06dd4d90


AMBARI-4304 When filtering on a prop, if the prop is in adv, custom, etc, we should expand section.(ababiichuk)


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

Branch: refs/heads/trunk
Commit: d06dd4d90f475863b381f998d63ee4508a74cd66
Parents: e10d9c6
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Wed Jan 15 18:47:22 2014 +0200
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Wed Jan 15 18:47:40 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/d06dd4d9/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 d61f335..41be669 100644
--- a/ambari-web/app/views/common/configs/services_config.js
+++ b/ambari-web/app/views/common/configs/services_config.js
@@ -354,6 +354,8 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({
      }
     });
     filteredResult = this.sortByIndex(filteredResult);
+    var categoryBlock = $('.' + this.get('category.name') + '>.accordion-body');
+    filteredResult.length ? categoryBlock.show() : categoryBlock.hide();
     return filteredResult;
   }.property('categoryConfigs', 'parentView.filter', 'parentView.columns.@each.selected'),