From ee7690228fa3d53f9de2fa413d74febd2301ba7c Mon Sep 17 00:00:00 2001 From: lukeIam Date: Sun, 9 Nov 2014 11:47:46 +0100 Subject: [PATCH] Fixed mixed tabs and spaces --- Vocaluxe/Website/js/main.js | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/Vocaluxe/Website/js/main.js b/Vocaluxe/Website/js/main.js index 58c706c5..c6a856bd 100644 --- a/Vocaluxe/Website/js/main.js +++ b/Vocaluxe/Website/js/main.js @@ -1355,10 +1355,10 @@ this.ownProfileId = -1; this.sessionId = ""; this.serverBaseAddress = ""; - - var init = function(){ - initHeartbeat(); - } + + var init = function() { + initHeartbeat(); + }; this.logout = function () { this.ownProfileId = -1; @@ -1372,30 +1372,30 @@ } $.mobile.changePage("#login", { transition: "slidefade" }); }; - - - var checkSession = function() { - if (ownProfileId == -1 - && profileIdRequest == -1 - && ($.mobile.activePage.attr("id") == "displayProfile" || $.mobile.activePage.attr("id") == "login" || $.mobile.activePage.attr("id") == "discover")) { - return; - } - request({ - url: "getOwnProfileId" - }, "noOverlay").done(function (result) { - if (result == -1) { - this.logout(); - } - }).fail(function (result) { - this.logout(); - }); - }; + + + var checkSession = function() { + if (ownProfileId == -1 + && profileIdRequest == -1 + && ($.mobile.activePage.attr("id") == "displayProfile" || $.mobile.activePage.attr("id") == "login" || $.mobile.activePage.attr("id") == "discover")) { + return; + } + request({ + url: "getOwnProfileId" + }, "noOverlay").done(function (result) { + if (result == -1) { + this.logout(); + } + }).fail(function (result) { + this.logout(); + }); + }; - var initHeartbeat = function() { - setInterval(checkSession, 20000); - }; - - init(); + var initHeartbeat = function() { + setInterval(checkSession, 20000); + }; + + init(); } initMain();