You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-15 11:43:58 +08:00
Backslash parsing bug
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user