mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 23:46:52 +00:00
Fixed problem with closing all tiddlers in a story
This commit is contained in:
parent
5e7e1fa93d
commit
dd3433f39f
@ -223,7 +223,8 @@ ListWidget.prototype.refreshInDom = function(changedAttributes,changedTiddlers)
|
|||||||
|
|
||||||
ListWidget.prototype.handleListChanges = function(changedTiddlers) {
|
ListWidget.prototype.handleListChanges = function(changedTiddlers) {
|
||||||
var t,
|
var t,
|
||||||
prevListLength = this.list.length;
|
prevListLength = this.list.length,
|
||||||
|
self = this;
|
||||||
// Get the list of tiddlers, having saved the previous length
|
// Get the list of tiddlers, having saved the previous length
|
||||||
this.getTiddlerList();
|
this.getTiddlerList();
|
||||||
// Check if the list is empty
|
// Check if the list is empty
|
||||||
@ -246,7 +247,7 @@ ListWidget.prototype.handleListChanges = function(changedTiddlers) {
|
|||||||
this.children = this.renderer.renderTree.createRenderers(this.renderer.renderContext,[this.getEmptyMessage()]);
|
this.children = this.renderer.renderTree.createRenderers(this.renderer.renderContext,[this.getEmptyMessage()]);
|
||||||
$tw.utils.each(this.children,function(node) {
|
$tw.utils.each(this.children,function(node) {
|
||||||
if(node.renderInDom) {
|
if(node.renderInDom) {
|
||||||
this.renderer.domNode.appendChild(node.renderInDom());
|
self.renderer.domNode.appendChild(node.renderInDom());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
@ -9,7 +9,9 @@ modifier: JeremyRuston
|
|||||||
|
|
||||||
<div class="small"><$view field="modifier" format="link"/> <$view field="modified" format="date"/></div>
|
<div class="small"><$view field="modifier" format="link"/> <$view field="modified" format="date"/></div>
|
||||||
|
|
||||||
@@.tw-tags-wrapper <$list filter="[is[current]tags[]]" template="$:/templates/TagTemplate" />@@
|
@@.tw-tags-wrapper <$list filter="[is[current]tags[]]" />@@
|
||||||
|
|
||||||
|
This is in the view template
|
||||||
|
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<$view field="text" format="wikified">
|
<$view field="text" format="wikified">
|
||||||
|
Loading…
Reference in New Issue
Block a user