mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
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:
parent
c4029e5680
commit
06add3ee07
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