Changed to materlializeCSS beta-1, that doesn't use jQuery

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-06 15:51:04 +02:00
parent 9164541750
commit bd9b42fd9e
18 changed files with 186 additions and 143 deletions

View File

@@ -33,13 +33,13 @@ $(document).ready(function() {
success: function(response) {
$(".full-form-token").addClass("hide");
if(response == "success") {
Materialize.toast("Email sent!", 3000, "green lighten");
M.toast({html: "Email sent!", displayLength: 3000, classes: "green lighten"});
} else {
$("#email_address").attr("readonly", false);
$(".submit").toggleClass("disabled");
$("#origin").attr("readonly", false);
grecaptcha.reset();
Materialize.toast("Something went wrong. Sure that email hasn't been used for another token?", 3000, "red lighten");
M.toast({html: "Something went wrong. Sure that email hasn't been used for another token?",displayLength: 3000, classes: "red lighten"});
}
},
error: function(response) {