Don't forget to name your css!

This commit is contained in:
Jeremy Zhang 2018-01-13 03:07:26 +00:00
parent 30b6a37bf0
commit d8eea5d590

View File

@ -87,6 +87,12 @@
} }
function submitForm() { function submitForm() {
var name = $('#css_name').val();
if (name == "") {
Materialize.toast("Don't forget to name your CSS!", 10000);
return;
}
var formPost = postForm(); var formPost = postForm();
formPost.done(function (data) { formPost.done(function (data) {
if (newCSS) { if (newCSS) {