Fixed mixed tabs and spaces
This commit is contained in:
1 parent
23a9059ff9
commit
ee7690228f
1 file changed
+23
-23
+23
-23
@@ -1356,9 +1356,9 @@
|
|||||||
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;
|
||||||
@@ -1374,28 +1374,28 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
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();
|
||||||
|
|||||||
Reference in new issue
Block a user