1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

Merge pull request #4913 from kasimi/ticket/15333

[ticket/15333] Call callback when confirm dialog is canceled

* github.com:phpbb/phpbb:
  [ticket/15333] Call callback when confirm dialog is canceled
This commit is contained in:
Tristan Darricau 2017-09-07 14:41:49 +02:00
commit 1ee4968a01
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -194,9 +194,7 @@ phpbb.confirm = function(msg, callback, fadedark) {
$confirmDiv.find('input[type="button"]').one('click.phpbb.confirmbox', function(e) {
var confirmed = this.name === 'confirm';
if (confirmed) {
callback(true);
}
callback(confirmed);
$confirmDiv.find('input[type="button"]').off('click.phpbb.confirmbox');
phpbb.alert.close($confirmDiv, fadedark || !confirmed);