1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-06 10:33:00 +00:00

Tweaks to fold button

This commit is contained in:
Jermolene
2015-08-09 16:11:34 +01:00
parent 27ec05e521
commit 16c69bb419
5 changed files with 11 additions and 11 deletions

View File

@@ -585,8 +585,7 @@ NavigatorWidget.prototype.handleFoldOtherTiddlersEvent = function(event) {
paramObject = event.paramObject || {},
prefix = paramObject.foldedStatePrefix;
$tw.utils.each(this.getStoryList(),function(title) {
var foldedState = self.wiki.getTiddlerText(prefix + title,"show");
self.wiki.setText(prefix + title,"text",null,event.param === title ? foldedState : "hide");
self.wiki.setText(prefix + title,"text",null,event.param === title ? "show" : "hide");
});
};