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 2013/07/24 03:19:01 UTC

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

Updated Branches:
  refs/heads/trunk fcdf75151 -> 90fee3624


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


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

Branch: refs/heads/trunk
Commit: 90fee3624950d3a4406a4e3a89197a74b052f7f6
Parents: fcdf751
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Tue Jul 23 18:18:50 2013 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Tue Jul 23 18:18:50 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/utils/host_progress_popup.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/90fee362/ambari-web/app/utils/host_progress_popup.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/host_progress_popup.js b/ambari-web/app/utils/host_progress_popup.js
index ccc818e..cefedf1 100644
--- a/ambari-web/app/utils/host_progress_popup.js
+++ b/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'),