Fix archiving bookm for kobo sync

Fix back function without search parameter
Updated Testresults
This commit is contained in:
Ozzie Isaacs
2024-08-04 07:12:22 +02:00
parent bcf4a479ac
commit 9b520b1941
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 ""