mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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
This commit is contained in:
commit
1ee4968a01
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue