Removing toasts when new toasts appear, and added a small fix for w3cvalidator

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-22 22:55:30 +01:00
parent 4efa995599
commit 7f23474b6d
11 changed files with 50 additions and 32 deletions

View File

@@ -91,6 +91,7 @@ var Admin = {
msg="Seems the song you want is already playing. No fooling the system!";
break;
}
before_toast();
Materialize.toast(msg, 4000);
},
@@ -167,6 +168,7 @@ var Admin = {
},
log_out: function(){
before_toast();
if(Crypt.get_pass(chan.toLowerCase())){
Crypt.remove_pass(chan.toLowerCase());
Admin.display_logged_out();