From d8eea5d590623174d222a802c30e75c75219d7bb Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Sat, 13 Jan 2018 03:07:26 +0000 Subject: [PATCH] Don't forget to name your css! --- webapp/titanembeds/static/js/usercss.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/titanembeds/static/js/usercss.js b/webapp/titanembeds/static/js/usercss.js index 4f2e43e..15cbd40 100644 --- a/webapp/titanembeds/static/js/usercss.js +++ b/webapp/titanembeds/static/js/usercss.js @@ -87,6 +87,12 @@ } function submitForm() { + var name = $('#css_name').val(); + if (name == "") { + Materialize.toast("Don't forget to name your CSS!", 10000); + return; + } + var formPost = postForm(); formPost.done(function (data) { if (newCSS) {