mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-30 06:43:03 +00:00
Backup metadata 4th step
This commit is contained in:
@@ -503,6 +503,23 @@ $(function() {
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#metadata_backup").click(function() {
|
||||
$("#DialogHeader").addClass("hidden");
|
||||
$("#DialogFinished").addClass("hidden");
|
||||
$("#DialogContent").html("");
|
||||
$("#spinner2").show();
|
||||
$.ajax({
|
||||
method: "post",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
url: getPath() + "/metadata_backup",
|
||||
success: function success(data) {
|
||||
$("#spinner2").hide();
|
||||
$("#DialogContent").html(data.text);
|
||||
$("#DialogFinished").removeClass("hidden");
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#perform_update").click(function() {
|
||||
$("#DialogHeader").removeClass("hidden");
|
||||
$("#spinner2").show();
|
||||
|
||||
Reference in New Issue
Block a user