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:
commit
1521def486
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user