|
|
Sergey Kornilov admin 8/23/2026 |
|
This option is available in PHPRunner and ASPRunner.NET:
More info: |
|
|
J
|
jMullally author 8/23/2026 |
|
I wish the 'Warn about leaving Add/Edit pages' worked in all instances - but it does not work in popups. Also I cannot cancel the 'Solved' designation in this forum as being author I changed my mind and realized it was not Solved! To start with: Sergey produces a superior product (as I have looked at other similarly and more costly priced products). I am hacking at this. There is a problem with my solution in my original post on this thread as it only works well when clicking the popup 'X' in the top right corner. Clicking the 'Cancel' button closes the popup before the JS on-click fires, which leaves the user with a warning if he made edits but the proposed opt out of closing option does not work. So when the user clicks 'Cancel' button after making edits the popup will always close (even after giving the user the option to opt out of closing as premature closing loses edits). To reiterate: Assuming you use my solution on modal popups: When you make changes in the Edit page and click the popup 'X', it will warn you and give you the option to opt out of closing (which works - good). When you make changes in the Edit page and click the Cancel button, it will warn you and present the option to opt out of closing - but if you opt of closing the Edit page, it will still close the Edit page - bad. I haven't figured out how to give the user any means to opt out of closing after clicking the Cancel button with edits. I replaced the following line code section in my original post in order to ignore the case where the user clicks the 'Cancel' button after edits were made (an improvement): |
|