From f4656b0f252e0f0ded8942fb3a7be9550bcb500e Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 20 Mar 2017 22:02:55 +0000 Subject: [PATCH] Add support dragging to the bottom of a list --- core/modules/filters/insertbefore.js | 2 +- core/ui/SideBar/Open.tid | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/modules/filters/insertbefore.js b/core/modules/filters/insertbefore.js index ed391c297..6fa9728f9 100644 --- a/core/modules/filters/insertbefore.js +++ b/core/modules/filters/insertbefore.js @@ -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) { diff --git a/core/ui/SideBar/Open.tid b/core/ui/SideBar/Open.tid index 0adb8407d..61e52b420 100644 --- a/core/ui/SideBar/Open.tid +++ b/core/ui/SideBar/Open.tid @@ -20,5 +20,11 @@ caption: {{$:/language/SideBar/Open/Caption}} - +<$tiddler tiddler=""> +<$droppable actions=<>> +
+  +
<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><> + +