Hi everyone,

Here is an unfinished task system that I'm trying to build:
http://problem-esb.bitballoon.com/

I'd like to have a few buttons in the tiddler toolbar which would work in view mode and edit mode as well. For that I use this macro:

\define filterNonDraftTitle()
  [all[current]get[draft.of]] [all[current]!has[draft.of]]
\end

It is called for the three buttons in the tiddler toolbar (here <http://problem-esb.bitballoon.com/#%24%3A%2Fesb%2Fcore%2FTaskButtons>), so that these buttons receive the non-draft version as currentTiddler. It works quite well for most things (for example I can create a new tiddler tagged with the current one even in draft mode), but I still have an annoying problem: if the task status is changed in draft mode (by clicking the checkbox or using the dropdown list), and then the tiddler is saved, then the status field is reset to whatever it was before editing. This is certainly due to the fact that the task-status field is changed in the non-draft tiddler, but of course when the draft is saved the field receives the value from the draft tiddler, so basically the new value is overwritten.

So, ideally, I would like to change the field value for both the current tiddler /and //its draft version if it exists/. Is that possible? Any other suggestion?

Please let me know if my explanation is not clear!

Thank you!
Erwan

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/565B85A9.4000502%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to