Add button to update cover cache (for usecase sideloaded changed cover)

Bugfix logig start background schedue
This commit is contained in:
Ozzie Isaacs
2022-04-25 08:24:14 +02:00
parent 1e723dff3a
commit ae9a970782
7 changed files with 47 additions and 13 deletions

View File

@@ -474,6 +474,17 @@ $(function() {
}
});
});
$("#admin_refresh_cover_cache").click(function() {
confirmDialog("admin_refresh_cover_cache", "GeneralChangeModal", 0, function () {
$.ajax({
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: getPath() + "/ajax/updateThumbnails",
});
});
});
$("#restart_database").click(function() {
$("#DialogHeader").addClass("hidden");
$("#DialogFinished").addClass("hidden");