Yesterday's hackathon[1] resulted in a simple plugin for handling tasks
within tiddlers. While this has been developed for the specific needs of
one of the attendants, it might still be of general use - so I thought
we'd share it here:
http://tinyurl.com/6gctpu
(http://svn.tiddlywiki.org/Trunk/contributors/FND/plugins/ToDoTogglePlugin.js)
Hopefully the documentation is clear enough to quickly get started
(though there's not much to it, really).
Note that this makes use of Eric's CheckboxPlugin[2], so you'll have to
install that as well.
-- F.
[1] http://twitter.com/osmosoft/statuses/878080192
[2] http://www.tiddlytools.com/#CheckboxPlugin
Glad to hear that.
FWIW, here's a quick demo document:
http://tinyurl.com/6qsg82
(http://fnd.lewcid.org/tmp/ToDoTogglePlugin.html#Tasks%20ToDoTogglePlugin)
-- F.
You're right. ($#@% IE!)
Technical information:
This is because the event is not defined in IE.
However, the ToDoTogglePlugin needs that event check because the
CheckboxPlugin seems to call the onClickCheckbox function not only
onClick, but also when the respective checkbox element is rendered.
Eric, can you confirm this?
-- F.
Ah, of course - thanks for the reminder!
> in onClickCheckbox(), the 'init' flag is checked order to ensure
> that certain 'side-effect' processing will only be invoked in response
> to an actual click and will not be triggtered during the initial
> rendering of the checkbox.
That makes sense now.
I've committed the fixed version and updated the demo:
http://tinyurl.com/6gctpu
(http://svn.tiddlywiki.org/Trunk/contributors/FND/plugins/ToDoTogglePlugin.js)
http://tinyurl.com/6qsg82
(http://fnd.lewcid.org/tmp/ToDoTogglePlugin.html#Tasks%20ToDoTogglePlugin)
Thanks for the clarification, Eric, and thanks to Tobias for reporting
this bug!
-- F.