You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-18 11:53:57 +08:00
unbind the click event
This commit is contained in:
@@ -78,6 +78,7 @@ function editJob(_id){
|
||||
job_string();
|
||||
}
|
||||
|
||||
$("#job-save").unbind("click"); // remove existing events attached to this
|
||||
$("#job-save").click(function(){
|
||||
// TODO good old boring validations
|
||||
$.post(routes.save, {name: $("#job-name").val(), command: job_command , schedule: schedule, _id: _id}, function(){
|
||||
@@ -99,6 +100,7 @@ function newJob(){
|
||||
$("#job-name").val("");
|
||||
$("#job-command").val("");
|
||||
job_string();
|
||||
$("#job-save").unbind("click"); // remove existing events attached to this
|
||||
$("#job-save").click(function(){
|
||||
// TODO good old boring validations
|
||||
$.post(routes.save, {name: $("#job-name").val(), command: job_command , schedule: schedule, _id: -1}, function(){
|
||||
|
||||
Reference in New Issue
Block a user