diff --git a/cps/static/js/details.js b/cps/static/js/details.js index 3487b901..9caf9470 100644 --- a/cps/static/js/details.js +++ b/cps/static/js/details.js @@ -22,8 +22,10 @@ $(function() { }); $("#have_read_cb").on("change", function() { - $.post({ + $.ajax({ url: this.closest("form").action, + method:"post", + data: $(this).closest("form").serialize(), error: function(response) { var data = [{type:"danger", message:response.responseText}] $("#flash_success").remove();