From 197750fc91f5fe34d2263899d9daaac25e110a1d Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 27 Jul 2018 09:02:10 +0000 Subject: [PATCH] Fix bug where it would alert warning when saving custom css --- webapp/titanembeds/static/js/usercss.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/titanembeds/static/js/usercss.js b/webapp/titanembeds/static/js/usercss.js index 5ec18db..85baa37 100644 --- a/webapp/titanembeds/static/js/usercss.js +++ b/webapp/titanembeds/static/js/usercss.js @@ -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(); }); }