Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
No Warning in Popup Form
No Warning in Popup Form
'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
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
Timo,
That is fixed now on Github.
Let me know if it works for you.
Steven
That is fixed now on Github.
Let me know if it works for you.
Steven
Re: No Warning in Popup Form
Just noticed that the message does not translate, appears just in English.
Compare:
https://github.com/nuSoftware/nuBuilder ... ving&type=
With:
https://github.com/nuSoftware/nuBuilder ... 74407341d4
Compare:
Code: Select all
if(!confirm(nuTranslate('Leave this form without saving?'))){
With:
Code: Select all
if(!confirm('Are you sure you want to leave this page?\n\nYou will lose any unsaved data.')){
Re: No Warning in Popup Form
Timo,
I have added some stuff to the Translation table.
It is now on Github (you'll need to run Update).
Steven
I have added some stuff to the Translation table.
It is now on Github (you'll need to run Update).
Steven
You do not have the required permissions to view the files attached to this post.