浏览代码

HUE-4242 [editor] Retry should use generic callback for the current operation

Could be a fetchResult() or executeStatement()
Romain Rigaux 9 年之前
父节点
当前提交
d6010d0d01
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 3 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -653,7 +653,9 @@
           huePubSub.publish('hide.retry.modal');
         }
         notebook.retryModalConfirm = function () {
-          self.execute();
+          if (callback) {
+            callback();
+          };
           huePubSub.publish('hide.retry.modal');
         }
         huePubSub.publish('show.retry.modal');