Browse Source

Backslash parsing bug

v0.1.4
alseambusher 9 years ago
parent
commit
118d9b6773
  1. 2
      package.json
  2. 1
      public/js/script.js
  3. 2
      views/index.ejs

2
package.json

@ -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": {

1
public/js/script.js

@ -54,7 +54,6 @@ function setCrontab(){
}
function editJob(_id){
console.log(_id);
var job = null;
crontabs.forEach(function(crontab){
if(crontab._id == _id)

2
views/index.ejs

@ -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…
Cancel
Save