I have been using Ton's top menu and after I upgraded to 5.0.10-beta, the
following doesn't work. I know it is probably obvious but I am going cross
eyed trying to figure it out:
<span title="Home"><button message="tw-home" class="btn-invisible" onclick="

var defaultTiddlersTitle = '$:/DefaultTiddlers',
    defaultTiddlersTiddler = $tw.wiki.getTiddler(defaultTiddlersTitle),
    defaultTiddlers = [];
if(defaultTiddlersTiddler) {
    defaultTiddlers =
$tw.wiki.filterTiddlers(defaultTiddlersTiddler.fields.text);
}
var storyTitle = '$:/StoryList',
    story = [];
for(var t=0; t
<defaultTiddlers.length; t++) {
    story[t] = defaultTiddlers[t];

}
$tw.wiki.addTiddler({title: storyTitle, text: '', list:
story},$tw.wiki.getModificationFields());
return false;
">{{$:/_images/home-button}}</button></span>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to