From 0c402aedc254ca85864008f54d5d4b2545b605d0 Mon Sep 17 00:00:00 2001 From: eduard13 Date: Wed, 12 Jun 2019 19:27:31 +0300 Subject: [PATCH] Calling the always action on opening and closing the modal. --- app/code/Magento/Ui/view/base/web/js/modal/alert.js | 1 - app/code/Magento/Ui/view/base/web/js/modal/confirm.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Ui/view/base/web/js/modal/alert.js b/app/code/Magento/Ui/view/base/web/js/modal/alert.js index 911d0e02578d2..4741f26ba2574 100644 --- a/app/code/Magento/Ui/view/base/web/js/modal/alert.js +++ b/app/code/Magento/Ui/view/base/web/js/modal/alert.js @@ -43,7 +43,6 @@ define([ * Close modal window. */ closeModal: function () { - this.options.actions.always(); this.element.bind('alertclosed', _.bind(this._remove, this)); return this._super(); diff --git a/app/code/Magento/Ui/view/base/web/js/modal/confirm.js b/app/code/Magento/Ui/view/base/web/js/modal/confirm.js index eceab940d1141..08a6fe2dc07c3 100644 --- a/app/code/Magento/Ui/view/base/web/js/modal/confirm.js +++ b/app/code/Magento/Ui/view/base/web/js/modal/confirm.js @@ -80,6 +80,8 @@ define([ * Open modal window. */ openModal: function () { + this.options.actions.always(); + return this._super(); },