Browse Source

AMBARI-2805. Background Operation shows HTML markup in some situations. (Andrii Babiichuk via yusaku)

Yusaku Sako 11 years ago
parent
commit
b9ac106280
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ambari-web/app/utils/host_progress_popup.js

+ 6 - 0
ambari-web/app/utils/host_progress_popup.js

@@ -753,6 +753,9 @@ App.HostPopup = Em.Object.create({
          * Onclick handler for selected Task
          */
         openTaskLogInDialog: function () {
+          if ($(".task-detail-log-clipboard").length > 0) {
+            this.destroyClipBoard();
+          }
           var newWindow = window.open();
           var newDocument = newWindow.document;
           newDocument.write($(".task-detail-log-info").html());
@@ -779,6 +782,9 @@ App.HostPopup = Em.Object.create({
         toggleTaskLog: function (event, context) {
           var taskInfo = event.context;
           this.set("isLogWrapHidden", false);
+          if ($(".task-detail-log-clipboard").length > 0) {
+            this.destroyClipBoard();
+          }
           this.set("isHostListHidden", true);
           this.set("isTaskListHidden", true);
           this.set('openedTaskId', taskInfo.id);