From 16c69bb419d0a4bc10395fc36bcadfa68330db7c Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 9 Aug 2015 16:11:34 +0100 Subject: [PATCH] Tweaks to fold button --- core/images/fold-button.tid | 5 +++-- core/images/fold-others-button.tid | 7 +++---- core/images/unfold-button.tid | 5 +++-- core/modules/widgets/navigator.js | 3 +-- core/wiki/tags/ViewToolbar.tid | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/images/fold-button.tid b/core/images/fold-button.tid index 833fbe880..e497e9831 100644 --- a/core/images/fold-button.tid +++ b/core/images/fold-button.tid @@ -1,9 +1,10 @@ title: $:/core/images/fold-button tags: $:/tags/Image - + - + + \ No newline at end of file diff --git a/core/images/fold-others-button.tid b/core/images/fold-others-button.tid index 1ca244dab..d19505cea 100644 --- a/core/images/fold-others-button.tid +++ b/core/images/fold-others-button.tid @@ -3,9 +3,8 @@ tags: $:/tags/Image - - - - + + + \ No newline at end of file diff --git a/core/images/unfold-button.tid b/core/images/unfold-button.tid index f40c42785..42a5ea335 100644 --- a/core/images/unfold-button.tid +++ b/core/images/unfold-button.tid @@ -1,9 +1,10 @@ title: $:/core/images/unfold-button tags: $:/tags/Image - + - + + \ No newline at end of file diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 88d337cea..51152e9fb 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -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"); }); }; diff --git a/core/wiki/tags/ViewToolbar.tid b/core/wiki/tags/ViewToolbar.tid index e23c026e7..ee0033d35 100644 --- a/core/wiki/tags/ViewToolbar.tid +++ b/core/wiki/tags/ViewToolbar.tid @@ -1,2 +1,2 @@ title: $:/tags/ViewToolbar -list: [[$:/core/ui/Buttons/fold]] [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] +list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]