first commit
This commit is contained in:
20
assets/javascript/frontend/newslettre.js
Normal file
20
assets/javascript/frontend/newslettre.js
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
$(".check-groupe").change(function () {
|
||||
|
||||
related = $(this).attr("data-related");
|
||||
operation = $(this).prop("checked");
|
||||
|
||||
console.log(related);
|
||||
console.log(operation);
|
||||
|
||||
$.post( pathAjaxUpdate, {related:related, operation:operation}, function( data ) {
|
||||
|
||||
console.log(data);
|
||||
|
||||
}).fail(function(response) {
|
||||
console.log(response.responseText);
|
||||
});
|
||||
|
||||
|
||||
//$("input:checkbox").prop('checked', $(this).prop("checked"));
|
||||
});
|
||||
Reference in New Issue
Block a user