mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10270] Fixed a bug with the close button in phpbb.confirm.
PHPBB3-10270
This commit is contained in:
parent
cdfd746a25
commit
e0d6814772
1 changed files with 7 additions and 1 deletions
|
@ -61,6 +61,7 @@ phpbb.alert = function(title, msg, fadedark) {
|
|||
return true;
|
||||
});
|
||||
dark.one('click', function(e) {
|
||||
div.find('.alert_close').unbind('click');
|
||||
var fade = (typeof fadedark !== 'undefined' && !fadedark) ? div : dark;
|
||||
fade.fadeOut(phpbb.alert_time, function() {
|
||||
div.hide();
|
||||
|
@ -135,6 +136,7 @@ phpbb.confirm = function(msg, callback, fadedark) {
|
|||
});
|
||||
|
||||
dark.one('click', function(e) {
|
||||
div.find('.alert_close').unbind('click');
|
||||
var fade = (typeof fadedark !== 'undefined' && !fadedark && res) ? div : dark;
|
||||
fade.fadeOut(phpbb.alert_time, function() {
|
||||
div.hide();
|
||||
|
@ -155,7 +157,11 @@ phpbb.confirm = function(msg, callback, fadedark) {
|
|||
});
|
||||
|
||||
div.find('.alert_close').one('click', function() {
|
||||
dark.trigger('click');
|
||||
var fade = (typeof fadedark !== 'undefined' && fadedark) ? div : dark;
|
||||
fade.fadeOut(phpbb.alert_time, function() {
|
||||
div.hide();
|
||||
});
|
||||
callback(false);
|
||||
});
|
||||
|
||||
if (loading_alert.is(':visible'))
|
||||
|
|
Loading…
Add table
Reference in a new issue