1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Add support dragging to the bottom of a list

This commit is contained in:
Jermolene 2017-03-20 22:02:55 +00:00
parent 9bad99d14e
commit f4656b0f25
2 changed files with 8 additions and 2 deletions

View File

@ -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) {

View File

@ -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>