aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-09-07 14:41:49 +0200
committerTristan Darricau <github@nicofuma.fr>2017-09-07 14:41:49 +0200
commit1ee4968a01f14314faf8f43043b4fc864f74abd8 (patch)
tree68a6eb21eb59b45bf29df30f78f76d00159911d2 /phpBB/assets
parent0755ae423b064d94218d5b86ba1a0311e3fa4f22 (diff)
parentb9854b4c892ea2be07072dfb0ed935b21e497be1 (diff)
downloadforums-1ee4968a01f14314faf8f43043b4fc864f74abd8.tar
forums-1ee4968a01f14314faf8f43043b4fc864f74abd8.tar.gz
forums-1ee4968a01f14314faf8f43043b4fc864f74abd8.tar.bz2
forums-1ee4968a01f14314faf8f43043b4fc864f74abd8.tar.xz
forums-1ee4968a01f14314faf8f43043b4fc864f74abd8.zip
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
Diffstat (limited to 'phpBB/assets')
-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 1be8a5784d..a88719f1df 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);