Skip to content

Commit

Permalink
Calling the always action on opening and closing the modal.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Jun 12, 2019
1 parent bb3cede commit 0c402ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/code/Magento/Ui/view/base/web/js/modal/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Ui/view/base/web/js/modal/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ define([
* Open modal window.
*/
openModal: function () {
this.options.actions.always();

return this._super();
},

Expand Down

0 comments on commit 0c402ae

Please sign in to comment.