1
0
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:
Ozzie Isaacs
2021-03-15 08:58:50 +01:00
parent 2451605033
commit 994bc8b0e4
2 changed files with 10 additions and 2 deletions

View File

@@ -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);