Re: [tw5] Re: an issue pop(s)up

2019-07-11 Thread Jeremy Ruston
This should now be fixed in the prerelease, thanks to BurningTreeC’s PR.

https://github.com/Jermolene/TiddlyWiki5/pull/4091

Best wishes

Jeremy.

> On 11 Jul 2019, at 06:10, BurningTreeC  wrote:
> 
> Hi Stephan,
> 
> the problem is that the buttons in tiddlywiki allow setting a popup in a 
> field, but the popup mechanism expects the popup-coordinates being stored in 
> a tiddler's text field
> 
> in your case the popup mechanism tries to delete the tiddler 
> "$:/SamplePopupState!!editmode"
> 
> that's an edge-case which is not handled correctly ...
> 
> for you that means that you should avoid using the state reference (!!) for 
> the popup
> 
> Am Mittwoch, 10. Juli 2019 20:57:26 UTC+2 schrieb Stephan Hradek:
> 
> 
> Am Mittwoch, 10. Juli 2019 10:32:18 UTC+2 schrieb Jeremy Ruston:
> You can work around it by using a text reference for the reveal widget 
> instead of separate title and field attributes.
> 
> Not quite, as the popup does not go away when clicking outside. 
> 
> -- 
> 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 https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/ef8ea975-8366-4700-8009-625a9f02a26c%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/59FCE746-5915-4782-8750-4AB3B1063D41%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: an issue pop(s)up

2019-07-10 Thread BurningTreeC
Hi Stephan,

the problem is that the buttons in tiddlywiki allow setting a popup in a 
field, but the popup mechanism expects the popup-coordinates being stored 
in a tiddler's text field

in your case the popup mechanism tries to delete the tiddler "
$:/SamplePopupState!!editmode"

that's an edge-case which is not handled correctly ...

for you that means that you should avoid using the state reference (!!) for 
the popup

Am Mittwoch, 10. Juli 2019 20:57:26 UTC+2 schrieb Stephan Hradek:
>
>
>
> Am Mittwoch, 10. Juli 2019 10:32:18 UTC+2 schrieb Jeremy Ruston:
>>
>> You can work around it by using a text reference for the reveal widget 
>> instead of separate title and field attributes.
>>
>
> Not quite, as the popup does not go away when clicking outside. 
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ef8ea975-8366-4700-8009-625a9f02a26c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: an issue pop(s)up

2019-07-10 Thread Stephan Hradek


Am Mittwoch, 10. Juli 2019 10:32:18 UTC+2 schrieb Jeremy Ruston:
>
> You can work around it by using a text reference for the reveal widget 
> instead of separate title and field attributes.
>

Not quite, as the popup does not go away when clicking outside. 

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d00faced-f7f7-412e-a1ef-a733d59d19c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: an issue pop(s)up

2019-07-10 Thread Jeremy Ruston
Hi Stephan

Welcome back!

I'm afraid that's a bug in v5.1.19 that's been fixed in the prerelease 
(see https://github.com/Jermolene/TiddlyWiki5/pull/3848). You can work 
around it by using a text reference for the reveal widget instead of 
separate title and field attributes.

Best wishes

Jeremy

On Wednesday, July 10, 2019 at 8:35:14 AM UTC+1, Stephan Hradek wrote:
>
> I'm wondering: what am I doing wrong?
>
> Paste this into a new tiddler:
>
> <$button popup="$:/SamplePopupState!!editmode">Pop me up!
>
> <$reveal type="popup" stateTitle="$:/SamplePopupState" 
> stateField="editmode">
> 
>
> ! This is the popup
> And this is some text
>
> 
> 
>
> and you'll get
>
> Internal JavaScript Error
>> Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
>> by refreshing your browser
>>
>  
>
>> TypeError: undefined is not an object (evaluating 
>> 'this.wiki.getTiddler(this.stateTitle).getFieldString')
>>
>>  
>  I simply wanted the popup to have its state stored in a field of an 
> existing tiddler.
>
> In the popup I want to enter some data.
>
>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/19da2860-bed2-4523-97c2-df9b58377b52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: an issue pop(s)up

2019-07-10 Thread PMario
Hi, 

On Wednesday, July 10, 2019 at 9:35:14 AM UTC+2, Stephan Hradek wrote:
...

>  I simply wanted the popup to have its state stored in a field of an 
> existing tiddler.
>

As you found out. It's not possible to define a field. It has to be a 
tiddler. 

-m
 

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3181ccc6-6096-4379-be4f-0c90c1b30d6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.