diff options
| -rw-r--r-- | index.html | 2 | ||||
| -rw-r--r-- | js/index.js | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -60,7 +60,7 @@ </div> </div> <!-- loginpopup --> - <p id="noplans" style="display:none">Es sind noch keine Pläne verfügbar.</p> + <center id="noplans" style="display:none">Es sind noch keine Pläne verfügbar.</center> <center><a id="lnklogin" href="#loginpopup" data-rel="popup" data-role="button" data-position-to="window" data-inline="true">Bitte logge dich ein!</a></center> </div> </div> <!-- vplantabs --> diff --git a/js/index.js b/js/index.js index 3c52d87..7af8fe4 100644 --- a/js/index.js +++ b/js/index.js @@ -21,7 +21,6 @@ $(document).bind('pageinit', function(){ setTimeout(function(){ load(); - $('#lnklogin').click(); }, 1000); setTimeout(function(){ @@ -270,7 +269,7 @@ function getuserdata(){ function login(){ userdata = getuserdata(); - if(userdata != null){ + if(userdata){ sendlogin(userdata[0], userdata[1]); $('#loginpopup').popup('close'); return 1; |
