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.
This commit is contained in:
David Bailey 2017-08-14 22:58:14 +01:00
parent c4029e5680
commit 06add3ee07

View file

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