Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jggj21 authored Aug 29, 2024
1 parent fc1be06 commit 410b32d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions resources/views/tasks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@
var button = $(event.relatedTarget);
var taskId = button.data('task-id');
var taskName = button.data('task-name');
var taskFile = button.data('task-file');
console.log("EDIT MODAL");
console.log({taskId, taskName, taskFile});
var taskFile = button.data('task-file');
var modal = $(this);
modal.find('#editTaskId').val(taskId);
modal.find('#editTaskName').val(taskName);
Expand All @@ -219,17 +217,6 @@
$('#editTaskForm').on('submit', function (event) {
event.preventDefault();
console.log("SUBMIT UPDATE");
console.log(this);
console.log($(this).attr('action'));
var formData = new FormData(this);
var taskId = $('#editTaskId').val();
var taskName = $('#editTaskId').val();
var updateUrl = '/task/' + taskId;
console.log({taskId, formData});
for (var pair of formData.entries()) {
console.log(pair[0]+ ': ' + pair[1]);
}
$.ajax({
url: $(this).attr('action'),
type: 'POST',
Expand Down

0 comments on commit 410b32d

Please sign in to comment.