Skip to content

Commit

Permalink
update task
Browse files Browse the repository at this point in the history
  • Loading branch information
jggj21 authored Aug 29, 2024
1 parent d080254 commit fc1be06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resources/views/tasks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@
console.log(pair[0]+ ': ' + pair[1]);
}
$.ajax({
url: updateUrl,
url: $(this).attr('action'),
type: 'POST',
data: formData,
processData: false,
contentType: false,
success: function (response) {
$('#editTaskModal').modal('hide');
//location.reload();
location.reload();
},
error: function (xhr) {
console.error('Error:', xhr.responseText);
Expand Down
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@

if ($validator->fails()) {
Log::error("Edit task failed.");
/* return redirect('/')
return redirect('/')
->withInput()
->withErrors($validator); */
->withErrors($validator);
}

$task = Task::findOrFail($id);
Expand Down

0 comments on commit fc1be06

Please sign in to comment.