mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-26 21:07:40 +00:00
Removed dropdown button on single file listen/read (Fix #1840)
This commit is contained in:
@@ -87,7 +87,7 @@ $(".container-fluid").bind('drop', function (e) {
|
||||
var files = e.originalEvent.dataTransfer.files;
|
||||
var test = $("#btn-upload")[0].accept;
|
||||
$(this).css('background', '');
|
||||
const dt = new DataTransfer()
|
||||
const dt = new DataTransfer();
|
||||
jQuery.each(files, function (index, item) {
|
||||
if (test.indexOf(item.name.substr(item.name.lastIndexOf('.'))) !== -1) {
|
||||
dt.items.add(item);
|
||||
|
||||
Reference in New Issue
Block a user