From 8cfd772ef3e1208606145eadf1b0954da14c8b0f Mon Sep 17 00:00:00 2001 From: Ralf Stemmer Date: Sat, 6 Feb 2021 16:44:05 +0100 Subject: [PATCH] Fixing dropping issue when tile draged from search --- webui/js/tiles/Tile.js | 11 +++++++++++ webui/js/views/QueueView.js | 1 + 2 files changed, 12 insertions(+) diff --git a/webui/js/tiles/Tile.js b/webui/js/tiles/Tile.js index 4825af97..d2638192 100644 --- a/webui/js/tiles/Tile.js +++ b/webui/js/tiles/Tile.js @@ -26,6 +26,17 @@ class Tile extends Draggable + onDragStart(event) + { + super.onDragStart(event); + + // When dragged from a search preview, hide everything to clear the drop zones + curtain.Hide(); + searchinput.HidePreview(); + } + + + MakeElement(artwork, title, topfeatureelements, subtitle, bottomfeatureelements) { if(artwork != null) diff --git a/webui/js/views/QueueView.js b/webui/js/views/QueueView.js index 430cfbdc..82d35c4a 100644 --- a/webui/js/views/QueueView.js +++ b/webui/js/views/QueueView.js @@ -156,6 +156,7 @@ class QueueDropZone extends DropTarget let musictype = draggable.dataset.musictype; let musicid = parseInt(draggable.dataset.musicid); let droptask = draggable.dataset.droptask; + //window.console && console.log(`Droped ${musictype} with id ${musicid}, ${droptask} at ${this.entryid}`); switch(droptask) {