Merge pull request #197 from techdavid/fix-bottom-drag-default

Fix decks being moved to the default deck when dragged to the bottom
This commit is contained in:
Damien Elmes 2017-08-15 21:21:52 +10:00 committed by GitHub
commit d0389e138e

View file

@ -24,7 +24,7 @@ function init() {
function handleDropEvent(event, ui) { function handleDropEvent(event, ui) {
var draggedDeckId = ui.draggable.attr('id'); var draggedDeckId = ui.draggable.attr('id');
var ontoDeckId = $(this).attr('id'); var ontoDeckId = $(this).attr('id') || '';
pycmd("drag:" + draggedDeckId + "," + ontoDeckId); pycmd("drag:" + draggedDeckId + "," + ontoDeckId);
} }