mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Rename BottomRowForDragging (since it's not just on the bottom anymore)
This commit is contained in:
parent
1399a79c74
commit
009d0c18e4
1 changed files with 5 additions and 5 deletions
|
@ -82,7 +82,7 @@ body { margin: 1em; -webkit-user-select: none; }
|
||||||
drop: handleDropEvent,
|
drop: handleDropEvent,
|
||||||
hoverClass: 'drag-hover',
|
hoverClass: 'drag-hover',
|
||||||
});
|
});
|
||||||
$("tr.bottom-row").droppable({
|
$("tr.top-level-drag-row").droppable({
|
||||||
drop: handleDropEvent,
|
drop: handleDropEvent,
|
||||||
hoverClass: 'drag-hover',
|
hoverClass: 'drag-hover',
|
||||||
});
|
});
|
||||||
|
@ -113,13 +113,13 @@ body { margin: 1em; -webkit-user-select: none; }
|
||||||
<tr><th colspan=5 align=left>%s</th><th align=right>%s</th>
|
<tr><th colspan=5 align=left>%s</th><th align=right>%s</th>
|
||||||
<th align=right>%s</th></tr>""" % (
|
<th align=right>%s</th></tr>""" % (
|
||||||
_("Deck"), _("Due"), _("New"))
|
_("Deck"), _("Due"), _("New"))
|
||||||
buf += self._bogusBottomRowForDraggingDeckToTopLevel()
|
buf += self._topLevelDragRow()
|
||||||
else:
|
else:
|
||||||
buf = ""
|
buf = ""
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
buf += self._deckRow(node, depth)
|
buf += self._deckRow(node, depth)
|
||||||
if depth == 0:
|
if depth == 0:
|
||||||
buf += self._bogusBottomRowForDraggingDeckToTopLevel()
|
buf += self._topLevelDragRow()
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
def _deckRow(self, node, depth):
|
def _deckRow(self, node, depth):
|
||||||
|
@ -145,8 +145,8 @@ body { margin: 1em; -webkit-user-select: none; }
|
||||||
buf += self._renderDeckTree(children, depth+1)
|
buf += self._renderDeckTree(children, depth+1)
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
def _bogusBottomRowForDraggingDeckToTopLevel(self):
|
def _topLevelDragRow(self):
|
||||||
return "<tr class='bottom-row'><td colspan='6'> </td></tr>"
|
return "<tr class='top-level-drag-row'><td colspan='6'> </td></tr>"
|
||||||
|
|
||||||
def _dueImg(self, due, new):
|
def _dueImg(self, due, new):
|
||||||
if due:
|
if due:
|
||||||
|
|
Loading…
Reference in a new issue