[ticket/10805] Compare phpbbAlertTimer against null

PHPBB3-10805
This commit is contained in:
Marc Alexander 2013-01-02 16:44:05 +01:00
parent 5d07ddffaf
commit 48b6e45f7c

View file

@ -13,7 +13,7 @@ var keymap = {
var dark = $('#darkenwrapper');
var loading_alert = $('#loadingalert');
var phpbbAlertTimer = 0;
var phpbbAlertTimer = null;
/**
@ -47,9 +47,9 @@ phpbb.loading_alert = function() {
* Clear loading alert timeout
*/
phpbb.clearLoadingTimeout = function() {
if (phpbbAlertTimer != 0) {
if (phpbbAlertTimer != null) {
clearTimeout(phpbbAlertTimer);
phpbbAlertTimer = 0;
phpbbAlertTimer = null;
}
}