mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Fix bug where it would alert warning when saving custom css
This commit is contained in:
parent
1629a8982c
commit
197750fc91
@ -99,6 +99,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#live_preview_warning").hide();
|
||||||
var formPost = postForm();
|
var formPost = postForm();
|
||||||
formPost.done(function (data) {
|
formPost.done(function (data) {
|
||||||
if (newCSS) {
|
if (newCSS) {
|
||||||
@ -111,6 +112,7 @@
|
|||||||
});
|
});
|
||||||
formPost.fail(function () {
|
formPost.fail(function () {
|
||||||
Materialize.toast('Oh no! Something has failed posting your CSS!', 10000);
|
Materialize.toast('Oh no! Something has failed posting your CSS!', 10000);
|
||||||
|
$("#live_preview_warning").show();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user