Added present-but-empty list-after functionality (#3219)

This places the list item at the end of the list when its 'list-item' field
is an empty string.
This commit is contained in:
Cameron Fischer
2018-04-24 16:58:09 +01:00
committed by Jeremy Ruston
parent 7f1541464a
commit 7e58866499
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -569,6 +569,8 @@ exports.sortByList = function(array,listTitle) {
afterTitle = tiddler.fields["list-after"];
if(beforeTitle === "") {
newPos = 0;
} else if(afterTitle === "") {
newPos = titles.length;
} else if(beforeTitle) {
newPos = titles.indexOf(beforeTitle);
} else if(afterTitle) {