mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-15 22:47:11 +00:00
Added option to upload a new format to a given book
This commit is contained in:
@@ -205,3 +205,11 @@ $("#search").on("change input.typeahead:selected", function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$("#btn-upload-format").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-format').html(filename);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user