Fix bug where it would alert warning when saving custom css

This commit is contained in:
Jeremy Zhang 2018-07-27 09:02:10 +00:00
parent 1629a8982c
commit 197750fc91

View File

@ -99,6 +99,7 @@
return;
}
$("#live_preview_warning").hide();
var formPost = postForm();
formPost.done(function (data) {
if (newCSS) {
@ -111,6 +112,7 @@
});
formPost.fail(function () {
Materialize.toast('Oh no! Something has failed posting your CSS!', 10000);
$("#live_preview_warning").show();
});
}