Bugfix toggle readstatus in modal dialog
This commit is contained in:
parent
1be7dfcdca
commit
6e5d9d7657
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user