From 8c8e3cd3abe2b401a6d37eedc8e2b2965a135020 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Tue, 29 Jan 2019 23:35:17 +0000 Subject: [PATCH] Make sure the css naming is set by truthy --- webapp/titanembeds/static/js/usercss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/usercss.js b/webapp/titanembeds/static/js/usercss.js index 85baa37..d17c531 100644 --- a/webapp/titanembeds/static/js/usercss.js +++ b/webapp/titanembeds/static/js/usercss.js @@ -94,7 +94,7 @@ function submitForm() { var name = $('#css_name').val(); - if (name == "") { + if (!name) { Materialize.toast("Don't forget to name your CSS!", 10000); return; }