From d7cd94dbd67b2f0bd237229196f34162b0216b1d Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 21 Dec 2014 16:21:18 +0000 Subject: [PATCH] Fix state tiddler used for examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Putting it in the `$:/state/` namespace ensures that it doesn’t dirty the wiki Fixes #1247 --- editions/tw5.com/tiddlers/widgets/RevealWidget.tid | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/RevealWidget.tid b/editions/tw5.com/tiddlers/widgets/RevealWidget.tid index 54799aca1..3940e91a0 100644 --- a/editions/tw5.com/tiddlers/widgets/RevealWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/RevealWidget.tid @@ -34,10 +34,10 @@ Retaining the content when hidden can give poor performance since the hidden con Here's a simple example of showing and hiding content with buttons: -<Show me -<$button set="$:/SampleRevealState1" setTo="hide">Hide me +<Show me +<$button set="$:/state/SampleReveal1" setTo="hide">Hide me -<$reveal type="match" state="$:/SampleRevealState1" text="show"> +<$reveal type="match" state="$:/state/SampleReveal1" text="show"> ! This is the revealed content And this is some text @@ -48,14 +48,14 @@ And this is some text A slider appears as a single button that can be used to toggle the display of the contained content. -< +< -<$button set="$:/SampleRevealState2" setTo="show">Show me +<$button set="$:/state/SampleReveal2" setTo="show">Show me -<$reveal type="match" state="$:/SampleRevealState2" text="show"> +<$reveal type="match" state="$:/state/SampleReveal2" text="show"> -<$button set="$:/SampleRevealState2" setTo="hide">Hide me +<$button set="$:/state/SampleReveal2" setTo="hide">Hide me ! This is the revealed content And this is some text