From 06add3ee0745527c6dac863bfaaeca9057cd29cd Mon Sep 17 00:00:00 2001 From: David Bailey Date: Mon, 14 Aug 2017 22:58:14 +0100 Subject: [PATCH] Fix decks being moved to the default deck when dragged to the bottom Previously ontoDeckId was undefined if a deck was moved to the bottom, resulting in it being moved to the default deck, instead of being made a top-level deck. --- web/deckbrowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/deckbrowser.js b/web/deckbrowser.js index be6a8f4f3..5078f37a8 100644 --- a/web/deckbrowser.js +++ b/web/deckbrowser.js @@ -24,7 +24,7 @@ function init() { function handleDropEvent(event, ui) { var draggedDeckId = ui.draggable.attr('id'); - var ontoDeckId = $(this).attr('id'); + var ontoDeckId = $(this).attr('id') || ''; pycmd("drag:" + draggedDeckId + "," + ontoDeckId); }