Backslash parsing bug

This commit is contained in:
alseambusher
2015-09-03 16:56:07 -07:00
parent 4a4e17a8f3
commit 118d9b6773
3 changed files with 2 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
$(function () {
// initialize tooltips
$('[data-toggle="tooltip"]').tooltip();
crontabs = JSON.parse('<%- crontabs.replace(/\\\"/g,"\\\\\"") %>');
crontabs = JSON.parse('<%- crontabs.replace(/\\\\/g, "\\\\\\\\").replace(/\\\"/g,"\\\\\"") %>');
routes = JSON.parse('<%- routes %>');
})
</script>