You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2012/12/09 15:40:26 UTC

svn commit: r1418980 [2/2] - in /incubator/ambari/branches/AMBARI-666/ambari-web/app: assets/data/wizard/stack/hdp/version/ controllers/global/ controllers/main/ controllers/main/service/ controllers/wizard/ mappers/ routes/ styles/ templates/main/serv...

Modified: incubator/ambari/branches/AMBARI-666/ambari-web/app/views/wizard/step7_view.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/ambari-web/app/views/wizard/step7_view.js?rev=1418980&r1=1418979&r2=1418980&view=diff
==============================================================================
--- incubator/ambari/branches/AMBARI-666/ambari-web/app/views/wizard/step7_view.js (original)
+++ incubator/ambari/branches/AMBARI-666/ambari-web/app/views/wizard/step7_view.js Sun Dec  9 14:40:20 2012
@@ -26,6 +26,9 @@ App.WizardStep7View = Em.View.extend({
   didInsertElement: function () {
     var controller = this.get('controller');
     controller.loadStep();
+  },
+  onToggleBlock: function(event){
+    $("#" + event.context).toggle('blind', 500);
   }
 
 });
@@ -46,8 +49,10 @@ App.WizardStep7.ServiceConfigsByCategory
   categoryConfigs: function () {
     return this.get('serviceConfigs').filterProperty('category', this.get('category.name'))
   }.property('serviceConfigs.@each').cacheable(),
-
-  layout: Ember.Handlebars.compile('<div class="accordion-body collapse in"><div class="accordion-inner">{{yield}}</div></div>')
+  didInsertElement: function(){
+    $("#Advanced").hide();
+  },
+  layout: Ember.Handlebars.compile('<div {{bindAttr id="view.category.name"}} class="accordion-body collapse in"><div class="accordion-inner">{{yield}}</div></div>')
 });
 
 App.WizardStep7.ServiceConfigTab = Ember.View.extend({