Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Oskar Manhart
2024-08-05 12:03:28 +02:00
4 changed files with 530 additions and 854 deletions
+3
View File
@@ -171,6 +171,9 @@ $("#back").click(function() {
}
sessionStorage.removeItem("back");
sessionStorage.removeItem("search");
if (param === null) {
param = "";
}
window.location.href = loc + param;
});
+3 -3
View File
@@ -183,9 +183,9 @@ def toggle_read(book_id):
@web.route("/ajax/togglearchived/<int:book_id>", methods=['POST'])
@user_login_required
def toggle_archived(book_id):
is_archived = change_archived_books(book_id, message="Book {} archive bit toggled".format(book_id))
if is_archived:
remove_synced_book(book_id)
change_archived_books(book_id, message="Book {} archive bit toggled".format(book_id))
# Remove book from syncd books list to force resync (?)
remove_synced_book(book_id)
return ""