Replacing tabs with spaces. Fix https://github.com/alseambusher/crontab-ui/issues/54
parent
4c7a4c9e68
commit
6b186a09bb
|
@ -130,8 +130,8 @@ exports.set_crontab = function(env_vars, callback){
|
|||
else callback();
|
||||
});
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
callback();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
$(function () {
|
||||
// initialize tooltips
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
crontabs = JSON.parse('<%- crontabs.replace(/\\\\/g, "\\\\\\\\").replace(/\\\"/g,"\\\\\"").replace(/\'/g,"\\\'") %>');
|
||||
crontabs = JSON.parse('<%- crontabs.replace(/\\\\/g, "\\\\\\\\").replace(/\\\"/g,"\\\\\"").replace(/\'/g,"\\\'").replace(/\\t/g, " ") %>');
|
||||
routes = JSON.parse('<%- routes %>');
|
||||
$("#env_vars").val(`<%- env %>`);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue