mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Fix closing the action confirmation modal window on top close icon (#5176)
* Fix closing the action confirmation modal window on top close icon * Update CHANGELOG_DEV.md Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
c8e80fb76c
commit
8043eb3e81
@ -2,6 +2,7 @@
|
||||
------------------
|
||||
|
||||
- Fix #5174: Tour module crashes with enabled tags field
|
||||
- Fix #5176: Closing the action confirmation modal window on top close icon
|
||||
|
||||
|
||||
1.9.0-beta.2 (July 14, 2021)
|
||||
|
@ -526,14 +526,13 @@ humhub.module('ui.modal', function (module, require, $) {
|
||||
//Init handler
|
||||
var that = this;
|
||||
if (cfg['handler']) {
|
||||
$confirmButton.one('click', function (evt) {
|
||||
$confirmButton.one('click', function () {
|
||||
that.clear();
|
||||
cfg['handler'](true);
|
||||
});
|
||||
}
|
||||
|
||||
if (cfg['handler']) {
|
||||
$cancelButton.one('click', function (evt) {
|
||||
var $closeButtonsIcons = this.$.find('[data-modal-close]');
|
||||
$closeButtonsIcons.one('click', function () {
|
||||
that.clear();
|
||||
cfg['handler'](false);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user