mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
Merge pull request #2480 from rxu/ticket/12572
[ticket/12572] Fix JS error when alert message title is undefined * rxu/ticket/12572: [ticket/12572] Fix JS error when alert message title is undefined
This commit is contained in:
@@ -333,7 +333,9 @@ phpbb.ajaxify = function(options) {
|
|||||||
// Hide the alert even if we refresh the page, in case the user
|
// Hide the alert even if we refresh the page, in case the user
|
||||||
// presses the back button.
|
// presses the back button.
|
||||||
dark.fadeOut(phpbb.alertTime, function() {
|
dark.fadeOut(phpbb.alertTime, function() {
|
||||||
alert.hide();
|
if (typeof alert !== 'undefined') {
|
||||||
|
alert.hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, res.REFRESH_DATA.time * 1000); // Server specifies time in seconds
|
}, res.REFRESH_DATA.time * 1000); // Server specifies time in seconds
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user