|
|
@ -25,6 +25,7 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
|
|
// Edit
|
|
|
|
// Edit
|
|
|
|
$('.js-edit').on('click', function(event) { |
|
|
|
$('.js-edit').on('click', function(event) { |
|
|
|
|
|
|
|
event.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|
// Trigger HTML5 form validation
|
|
|
|
// Trigger HTML5 form validation
|
|
|
|
var valid = $('#form-edit')[0].reportValidity(); |
|
|
|
var valid = $('#form-edit')[0].reportValidity(); |
|
|
@ -32,7 +33,7 @@ $(document).ready(function() { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var href = $(this).attr('href'); |
|
|
|
var href = $(this).attr('data-href'); |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
url: href, |
|
|
|
url: href, |
|
|
|
type: "PUT", |
|
|
|
type: "PUT", |
|
|
|