소스 검색

AMBARI-2715. BG operations window behavior is unreliable. (Antonenko Alexander via yusaku)

Yusaku Sako 12 년 전
부모
커밋
90fee36249
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      ambari-web/app/utils/host_progress_popup.js

+ 8 - 1
ambari-web/app/utils/host_progress_popup.js

@@ -474,7 +474,7 @@ App.HostPopup = Em.Object.create({
       }),
       classNames: ['sixty-percent-width-modal'],
       autoHeight: false,
-      onPrimary: function () {
+      closeModelPopup: function () {
         this.set('isOpen', false);
         if(showServices){
           $(this.get('element')).detach();
@@ -482,6 +482,12 @@ App.HostPopup = Em.Object.create({
           this.hide();
         }
       },
+      onPrimary: function () {
+        this.closeModelPopup();
+      },
+      onClose: function () {
+        this.closeModelPopup();
+      },
       secondary: null,
 
       bodyClass: Ember.View.extend({
@@ -534,6 +540,7 @@ App.HostPopup = Em.Object.create({
             this.set('isTaskListHidden', true);
             this.set('isHostListHidden', true);
             this.set('isServiceListHidden', false);
+            this.get("controller").setBackgroundOperationHeader();
             this.setOnStart();
           }
         }.observes('parentView.isOpen'),