Add support dragging to the bottom of a list

print-window-tiddler
Jermolene 2017-03-20 22:02:55 +00:00
rodzic 9bad99d14e
commit f4656b0f25
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ exports.insertbefore = function(source,operator,options) {
results.push(title);
});
var target = options.widget && options.widget.getVariable(operator.suffix || "currentTiddler");
if(target && target !== operator.operand) {
if(target !== operator.operand) {
// Remove the entry from the list if it is present
var pos = results.indexOf(operator.operand);
if(pos !== -1) {

Wyświetl plik

@ -20,5 +20,11 @@ caption: {{$:/language/SideBar/Open/Caption}}
</$droppable>
</div>
</$list>
<$tiddler tiddler="">
<$droppable actions=<<drop-actions>>>
<div class="tc-droppable-placeholder">
&nbsp;
</div>
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>
</$droppable>
</$tiddler>