mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-24 22:33:16 +00:00
Add support dragging to the bottom of a list
This commit is contained in:
parent
9bad99d14e
commit
f4656b0f25
|
@ -21,7 +21,7 @@ exports.insertbefore = function(source,operator,options) {
|
||||||
results.push(title);
|
results.push(title);
|
||||||
});
|
});
|
||||||
var target = options.widget && options.widget.getVariable(operator.suffix || "currentTiddler");
|
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
|
// Remove the entry from the list if it is present
|
||||||
var pos = results.indexOf(operator.operand);
|
var pos = results.indexOf(operator.operand);
|
||||||
if(pos !== -1) {
|
if(pos !== -1) {
|
||||||
|
|
|
@ -20,5 +20,11 @@ caption: {{$:/language/SideBar/Open/Caption}}
|
||||||
</$droppable>
|
</$droppable>
|
||||||
</div>
|
</div>
|
||||||
</$list>
|
</$list>
|
||||||
|
<$tiddler tiddler="">
|
||||||
|
<$droppable actions=<<drop-actions>>>
|
||||||
|
<div class="tc-droppable-placeholder">
|
||||||
|
|
||||||
|
</div>
|
||||||
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>
|
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>
|
||||||
|
</$droppable>
|
||||||
|
</$tiddler>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user