Using raw string now

This commit is contained in:
Daniel 2017-02-13 20:05:13 +00:00
parent 78068d511c
commit 566d8f53d5

View file

@ -1762,7 +1762,7 @@ INDEX = Template("""<!DOCTYPE html>
data.text = editor.getValue()
$.post("api/save", data).done(function(resp) {
if (resp.error) {
var $toastContent = $("<div><pre>" + resp.message + "\n" + resp.path + "</pre></div>");
var $toastContent = $("<div><pre>" + resp.message + "\\n" + resp.path + "</pre></div>");
Materialize.toast($toastContent, 5000);
}
else {