Fixed mixed tabs and spaces

This commit is contained in:
lukeIam committed 2014-11-09 11:47:46 +01:00
1 parent 23a9059ff9
commit ee7690228f
1 file changed
+27 -27
+27 -27
View File
@@ -1355,10 +1355,10 @@
this.ownProfileId = -1; this.ownProfileId = -1;
this.sessionId = ""; this.sessionId = "";
this.serverBaseAddress = ""; this.serverBaseAddress = "";
var init = function(){ var init = function() {
initHeartbeat(); initHeartbeat();
} };
this.logout = function () { this.logout = function () {
this.ownProfileId = -1; this.ownProfileId = -1;
@@ -1372,30 +1372,30 @@
} }
$.mobile.changePage("#login", { transition: "slidefade" }); $.mobile.changePage("#login", { transition: "slidefade" });
}; };
var checkSession = function() { var checkSession = function() {
if (ownProfileId == -1 if (ownProfileId == -1
&& profileIdRequest == -1 && profileIdRequest == -1
&& ($.mobile.activePage.attr("id") == "displayProfile" || $.mobile.activePage.attr("id") == "login" || $.mobile.activePage.attr("id") == "discover")) { && ($.mobile.activePage.attr("id") == "displayProfile" || $.mobile.activePage.attr("id") == "login" || $.mobile.activePage.attr("id") == "discover")) {
return; return;
} }
request({ request({
url: "getOwnProfileId" url: "getOwnProfileId"
}, "noOverlay").done(function (result) { }, "noOverlay").done(function (result) {
if (result == -1) { if (result == -1) {
this.logout(); this.logout();
} }
}).fail(function (result) { }).fail(function (result) {
this.logout(); this.logout();
}); });
}; };
var initHeartbeat = function() { var initHeartbeat = function() {
setInterval(checkSession, 20000); setInterval(checkSession, 20000);
}; };
init(); init();
} }
initMain(); initMain();