Updates:
* added $navigator and $action-navigate widgets to make "scroll into view"
work
* remove the viewed tiddler from the StoryList before opening for edit
(prevents display of two instances of the same tiddler!)
\define showModal(tid)
<$button> open modal: <$text text="$tid$" />
<$action-setfield $tiddler="$:/temp/modal/$tid$"
subtitle="$tid$"
text="{{$tid$}}"
footer="""
<$button message="tm-close-tiddler"> close
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/>
</$button>
<$button message="tm-close-tiddler"> view
<$navigator>
<$action-listops $tiddler="$:/StoryList" $subfilter="[[$tid$]]"
/>
<$action-navigate $to="$tid$" $scroll="yes"/>
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/>
</$navigator>
</$button>
<$button message="tm-close-tiddler"> edit
<$navigator>
<$action-sendmessage $message="tm-edit-tiddler" $param="$tid$"
/>
<$action-listops $tiddler="$:/StoryList" $subfilter="-[[$tid$]]
[[Draft of '$tid$']]" />
<$action-navigate $to="Draft of '$tid$'" $scroll="yes"/>
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/>
</$navigator>
</$button>
""" />
<$action-sendmessage $message="tm-modal" $param="$:/temp/modal/$tid$" />
</$button>
\end
enjoy,
-e
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/3b3e66fd-4fbf-4551-873b-13c450e4ea58o%40googlegroups.com.