mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-24 17:10:31 +00:00
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() {
|
$("#have_read_cb").on("change", function() {
|
||||||
$.post({
|
$.ajax({
|
||||||
url: this.closest("form").action,
|
url: this.closest("form").action,
|
||||||
|
method:"post",
|
||||||
|
data: $(this).closest("form").serialize(),
|
||||||
error: function(response) {
|
error: function(response) {
|
||||||
var data = [{type:"danger", message:response.responseText}]
|
var data = [{type:"danger", message:response.responseText}]
|
||||||
$("#flash_success").remove();
|
$("#flash_success").remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user