From 6e5d9d76576d15ae62ea27325b20d1aa40e93380 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Fri, 15 Oct 2021 19:26:20 +0200 Subject: [PATCH] Bugfix toggle readstatus in modal dialog --- cps/static/js/details.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();