[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-29 Thread PMario
On Monday, May 29, 2017 at 1:33:16 PM UTC+2, Julian Kniephoff wrote: > > On Monday, May 29, 2017 at 12:08:13 PM UTC+2, Ton Gerner wrote: >> >> @Julian >> >> Create a tiddler which contains: >> >> {{!!title}} >> >> {{!!draft.of}} >> >> {{!!draft.title}} >> >> In edit mode with preview mode enabled y

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-29 Thread Julian Kniephoff
On Monday, May 29, 2017 at 12:08:13 PM UTC+2, Ton Gerner wrote: > > @Julian > > Create a tiddler which contains: > > {{!!title}} > > {{!!draft.of}} > > {{!!draft.title}} > > In edit mode with preview mode enabled you see that `{{!!draft.of}}` and > `{{!!draft.title}}` behave the same. > > But - st

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-29 Thread Ton Gerner
Just some observations. My proposal used a modified Save tiddler with <$action-sendmessage $message="tm-close-tiddler" $param=<>/> inserted after <$action-sendmessage $message="tm-save-tiddler"/> I thought saving of the tiddler occurs *before* closing of the tiddler, so no draft situation whe

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-29 Thread Julian Kniephoff
Shouldn't {{!!draft.of}} rather be {{!!draft.title}}, like Eric originally suggested? Otherwise, this technique doesn't work for me when I change the title of the tiddler; it just stays open, which makes sense, because the (potentially) new/edited title is saved in the draft.title field, not dr

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-26 Thread @TiddlyTweeter
Ciao RichardWS I been testing this in an empty TW. So far so good. Many thanks, Josiah RichardWilliamSmith wrote: > This seems to work ... -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread @TiddlyTweeter
Thanks RichardWS Excellent! I will try it tomorrow. Best wishes Josiah RichardWilliamSmith wrote: > > This seems to work ... > -- 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, sen

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread RichardWilliamSmith
This seems to work (title:$:/core/ui/Buttons/save_and_close , tags:$:/tags/EditToolbar) <$set name="ogtiddler" value={{!!draft.of}}> > <$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} > aria-label={{$:/language/Buttons/Save/Caption}} > class=<>> > <$action-sendmessage $message=

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread @TiddlyTweeter
Thank you very much Eric I really don't have the tech competence on this, to actually do it, but I think other people are interested too and would be great if we could solve this issue. I'm coming at it in terms of functional design. There are many kinds of applications where creating & editi

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread Eric Shulman
On Thursday, May 25, 2017 at 9:04:11 AM UTC-7, @TiddlyTweeter wrote: > > I just double-checked it in a fresh empty TW. Sorry, its not closing the > Tiddler. > I don't have a solution (yet), but here's some details that might help: This is the message being sent to close the tiddler <$action-send

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread @TiddlyTweeter
Ciao Ton I just double-checked it in a fresh empty TW. Sorry, its not closing the Tiddler. Thanks for indicating its been discussed before. Best wishes Josiah Ton Gerner wrote: > > Hmmm... I thought it worked when I tested it. > Don't know what is wrong with the code. > Anyhow I found an in

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread Ton Gerner
Hi Josiah, Hmmm... I thought it worked when I tested it. Don't know what is wrong with the code. Anyhow I found an interesting discussion: https://groups.google.com/forum/#!msg/tiddlywiki/_76g9VsbTAM/w0sNd-i8BAAJ Cheers, Ton -- You received this message because you are subscribed to the Googl

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread @TiddlyTweeter
Ciao Ton Thankyou! I put it in. The icon appears in edit mode. Clicking it saves, but in my 5.1.14 in Firefox it is not close the Tiddler :-(. Josiah On Thursday, 25 May 2017 15:42:52 UTC+2, Ton Gerner wrote: > > Hi Josiah, > > tags: $:/tags/EditToolbar > title: Save & close button > > <$field

[tw] Re: Query - Is there a Save AND CLOSE Button?

2017-05-25 Thread Ton Gerner
Hi Josiah, tags: $:/tags/EditToolbar title: Save & close button <$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label ={{$:/language/Buttons/Save/Caption}} class=<>> <$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/> <$action-deletetiddler $tiddler="