1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-26 21:07:40 +00:00

Added posibility to upload cover from local drive (#439)

Updated language files
This commit is contained in:
OzzieIsaacs
2018-08-28 14:07:48 +02:00
parent 3a37183e25
commit a7a91ae54c
16 changed files with 685 additions and 449 deletions

View File

@@ -246,3 +246,11 @@ $("#btn-upload-format").on("change", function () {
} // Remove c:\fake at beginning from localhost chrome
$("#upload-format").html(filename);
});
$("#btn-upload-cover").on("change", function () {
var filename = $(this).val();
if (filename.substring(3, 11) === "fakepath") {
filename = filename.substring(12);
} // Remove c:\fake at beginning from localhost chrome
$("#upload-cover").html(filename);
});