1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-30 14:53:01 +00:00

Added option to save books with no nenglish characters

Imporvements on metadata search
This commit is contained in:
Ozzie Isaacs
2021-08-01 13:50:17 +02:00
parent 702e96ddd6
commit ceec1051d5
17 changed files with 76 additions and 43 deletions

View File

@@ -82,7 +82,6 @@ $(function () {
success: function success(data) {
// console.log(data);
data.forEach(function(provider) {
//$("#metadata_provider").html("<ul id=\"book-list\" class=\"media-list\"></ul>");
var checked = "";
if (provider.active) {
checked = "checked";
@@ -94,6 +93,17 @@ $(function () {
});
}
$(document).on("change", ".pill", function () {
var id = $(this).data("control");
var val = $(this).prop('checked');
$.ajax({
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: getPath() + "/metadata/provider",
data: JSON.stringify({id : id, value: val}),
});
});
$("#meta-search").on("submit", function (e) {
e.preventDefault();