mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00: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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue