summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html2
-rw-r--r--js/index.js3
2 files changed, 2 insertions, 3 deletions
diff --git a/index.html b/index.html
index ccb08a9..3ab5377 100644
--- a/index.html
+++ b/index.html
@@ -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;