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

Merge branch '3.2.x'

* 3.2.x:
  [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 1521def486
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -190,9 +190,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);