Backslash parsing bug
parent
4a4e17a8f3
commit
118d9b6773
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "crontab-ui",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"description": "Easy and safe way to manage your crontab file",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -54,7 +54,6 @@ function setCrontab(){
|
|||
}
|
||||
|
||||
function editJob(_id){
|
||||
console.log(_id);
|
||||
var job = null;
|
||||
crontabs.forEach(function(crontab){
|
||||
if(crontab._id == _id)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue