aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript/core.js
diff options
context:
space:
mode:
authorkasimi <mail@kasimi.net>2017-08-21 15:33:46 +0200
committerkasimi <mail@kasimi.net>2017-08-21 15:33:46 +0200
commitb9854b4c892ea2be07072dfb0ed935b21e497be1 (patch)
treeb5e2bad3089491e46e458eb9bc98dfa89d82322d /phpBB/assets/javascript/core.js
parent1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff)
downloadforums-b9854b4c892ea2be07072dfb0ed935b21e497be1.tar
forums-b9854b4c892ea2be07072dfb0ed935b21e497be1.tar.gz
forums-b9854b4c892ea2be07072dfb0ed935b21e497be1.tar.bz2
forums-b9854b4c892ea2be07072dfb0ed935b21e497be1.tar.xz
forums-b9854b4c892ea2be07072dfb0ed935b21e497be1.zip
[ticket/15333] Call callback when confirm dialog is canceled
PHPBB3-15333
Diffstat (limited to 'phpBB/assets/javascript/core.js')
-rw-r--r--phpBB/assets/javascript/core.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 7dcedaef80..c9f0d5b0ba 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -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);