Page 1 of 1
No Warning in Popup Form
Posted: Wed May 02, 2018 8:02 pm
by Timo
'Leave this form without saving?' is shown when I leave a form with unsaved data. This is not the case for forms created with nuPopup. When I click the "x", the form closes without warning and all unsaved data is lost.
Re: No Warning in Popup Form
Posted: Sat May 05, 2018 9:49 am
by Timo
Does anyone have an idea how to prevent an unsaved form from being closed? Sometimes it happens that a user closes the form without saving and then all changes are lost

Re: No Warning in Popup Form
Posted: Tue May 08, 2018 8:32 am
by admin
Timo,
That is fixed now on Github.
Let me know if it works for you.
Steven
Re: No Warning in Popup Form
Posted: Wed May 09, 2018 9:04 am
by Timo
Thank you - it works for me

Re: No Warning in Popup Form
Posted: Wed May 09, 2018 9:08 am
by Timo
Just noticed that the message does not translate, appears just in English.
Compare:
Code: Select all
if(!confirm(nuTranslate('Leave this form without saving?'))){
https://github.com/nuSoftware/nuBuilder ... ving&type=
With:
Code: Select all
if(!confirm('Are you sure you want to leave this page?\n\nYou will lose any unsaved data.')){
https://github.com/nuSoftware/nuBuilder ... 74407341d4
Re: No Warning in Popup Form
Posted: Thu May 10, 2018 3:40 am
by admin
Timo,
I have added some stuff to the Translation table.
tran.PNG
It is now on Github (you'll need to run Update).
Steven