Fixed removing of Remove button and faulty variable adminTogg

This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-30 23:04:53 +02:00
parent 8ee2d1afa0
commit 34bc8953c0
3 changed files with 16 additions and 18 deletions

View File

@@ -1,4 +1,3 @@
var adminTogg = false;
var pass_corr = "";
@@ -86,6 +85,7 @@ function log_out(){
}
$("#admin-lock").addClass("mdi-action-lock");
$("#admin-lock").removeClass("mdi-action-lock-open clickable");
$(".card-action").addClass("hide");
document.getElementById("password").value = "";
Materialize.toast("Logged out", 4000);
}else{