mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
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:
commit
d0389e138e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue