I tried to fix it on my own, changing from this:

!toggleall
<html><nowiki><form style="display:inline">
        <input type="checkbox" name="c" onclick="
                var 
tid=story.findContainingTiddler(this).getAttribute('tiddler');
                var tags='$1'.readBracketedList();
                store.suspendNotifications();
                for (var t=0; t<tags.length; t++)
                        store.setTiddlerTag(tid,this.checked,tags[t]);
                store.resumeNotifications();
                story.refreshTiddler(tid,null,true);
        ">
</form></html><<tiddler {{
        var
t=store.getTiddler(story.findContainingTiddler(place).getAttribute('tiddler'));
        var tags='$1'.readBracketedList();
        place.lastChild.getElementsByTagName('form')
[0].c.checked=t.tags.containsAll(tags);
'';}}>>
!end toggleall


to this (please don't laugh):



!toggleall
<html><nowiki><form style="display:inline">
        <input type="checkbox" name="c" onclick="
                var 
tid=story.findContainingTiddler('$1').getAttribute('tiddler');
                var tags='$2'.readBracketedList();
                store.suspendNotifications();
                for (var t=1; t<tags.length; t++)
                        store.setTiddlerTag(tid,tid.checked,tags[t]);
                store.resumeNotifications();
                story.refreshTiddler(tid,null,true);
        ">
</form></html><<tiddler {{
        var
t=store.getTiddler(story.findContainingTiddler(place).getAttribute('tiddler'));
        var tags='$2'.readBracketedList();
        place.lastChild.getElementsByTagName('form')
[0].c.checked=t.tags.containsAll(tags);
'';}}>>
!end toggleall

Strangely enough, even with all my screwing around with the code, the
"toggle all" button in the original one kept on working...

I give up now.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to