Bläddra i källkod

AMBARI-2615. JS Error occurs when config field in/out focus. (Andrii Tkach via yusaku)

Yusaku Sako 12 år sedan
förälder
incheckning
582bfbcd26

+ 5 - 5
ambari-web/app/templates/common/configs/propertyDependence.hbs

@@ -16,13 +16,13 @@
 * limitations under the License.
 }}
 
-<table class="table table-bordered table-striped span6">
+<table class="table table-bordered table-striped">
   <thead>
   <tr>
-    <th style="width:20%">{{t common.service}}</th>
-    <th style="width:20%">{{t common.property}}</th>
-    <th style="width:30%">{{t installer.step7.popup.currentValue}}</th>
-    <th style="width:30%">{{t installer.step7.popup.adjustedValue}}</th>
+    <th>{{t common.service}}</th>
+    <th>{{t common.property}}</th>
+    <th>{{t installer.step7.popup.currentValue}}</th>
+    <th>{{t installer.step7.popup.adjustedValue}}</th>
   </tr>
   </thead>
   <tbody>

+ 2 - 2
ambari-web/app/views/wizard/controls_view.js

@@ -60,11 +60,11 @@ App.ServiceConfigTextField = Ember.TextField.extend(App.ServiceConfigPopoverSupp
   },
   //Set editDone true for last edited config text field parameter
   focusOut: function(event){
-    this.get('_parentView').get("content").set("editDone", true);
+    this.get('serviceConfig').set("editDone", true);
   },
   //Set editDone false for all current category config text field parameter
   focusIn: function(event){
-    this.get("categoryConfigsAll").setEach("editDone", false);
+    this.get("parentView.categoryConfigsAll").setEach("editDone", false);
   },
 
   textFieldClassName: function () {