Skip to content

Commit

Permalink
Merge pull request #92 from tdt/development
Browse files Browse the repository at this point in the history
Added schedule to edit action in js
  • Loading branch information
coreation committed Dec 27, 2015
2 parents 4ff8653 + 55fdc66 commit eb78672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dev/js/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ $('.btn-add-job').on('click', function(e){

// Get the schedule
data['schedule'] = $('#schedule option:checked').val();
console.log(data);

// Ajax call
$.ajax({
Expand Down Expand Up @@ -100,6 +99,9 @@ $('.btn-edit-job').on('click', function(e){
data[sequence] = object;
});

// Get the schedule
data['schedule'] = $('#schedule option:checked').val();

// Ajax call
$.ajax({
url: baseURL + 'api/input/' + collection,
Expand Down
2 changes: 1 addition & 1 deletion public/jobs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb78672

Please sign in to comment.