fixed welcome back message, it wasnt showing up in some cases

v1.18.x
Baris Usakli 12 years ago
parent b96084fb16
commit 16a95dd408

@ -5,7 +5,8 @@ var socket,
(function() {
var showWelcomeMessage = false;
function loadConfig() {
$.ajax({
@ -285,8 +286,9 @@ var socket,
timeout: 5000
});
}
if(location.href.indexOf('loggedin') !== -1) {
if(showWelcomeMessage) {
showWelcomeMessage = false;
if(document.readyState !== 'complete') {
$(document).ready(showAlert);
} else {
@ -371,6 +373,8 @@ var socket,
})
});
showWelcomeMessage = location.href.indexOf('loggedin') !== -1;
loadConfig();

Loading…
Cancel
Save