Backslash parsing bug
parent
4a4e17a8f3
commit
118d9b6773
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "crontab-ui",
|
"name": "crontab-ui",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "Easy and safe way to manage your crontab file",
|
"description": "Easy and safe way to manage your crontab file",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -54,7 +54,6 @@ function setCrontab(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function editJob(_id){
|
function editJob(_id){
|
||||||
console.log(_id);
|
|
||||||
var job = null;
|
var job = null;
|
||||||
crontabs.forEach(function(crontab){
|
crontabs.forEach(function(crontab){
|
||||||
if(crontab._id == _id)
|
if(crontab._id == _id)
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
// initialize tooltips
|
// initialize tooltips
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
crontabs = JSON.parse('<%- crontabs.replace(/\\\"/g,"\\\\\"") %>');
|
crontabs = JSON.parse('<%- crontabs.replace(/\\\\/g, "\\\\\\\\").replace(/\\\"/g,"\\\\\"") %>');
|
||||||
routes = JSON.parse('<%- routes %>');
|
routes = JSON.parse('<%- routes %>');
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue