1
0
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:
Jeremy Ruston 2013-01-18 15:36:49 +00:00
parent 5e7e1fa93d
commit dd3433f39f
2 changed files with 6 additions and 3 deletions

View File

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

View File

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