View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0018407||phpList 3 application||Interface - Administrator||public||08-11-16 16:10||19-07-17 15:51|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Summary||0018407: Add popup message "are you sure you want to leave this page?" before closing page with unsaved changes|
|Description||In the campaign editor / Send a new campaign page, warn the user before they leave the page without having saved changes to their campaign content first. Use a pop up message for this stating e.g. "Are you sure that you want to leave this page?".|
|Tags||No tags attached.|
I did it in the campaing editor and in the config form (if some configuration item is open to edit).
This is the commit to Trevelin theme: https://github.com/mariez/phplist-ui-bootlist/commit/377ce1b49c197ff08417e32ff47f3937268e33b6
This change doesn't seem to work properly as it displays the popup even after a change has been saved.
For example, on the Format tab select a template then move to the next tab. At that point the change has been saved but if I click a link in the left hand menu then the popup is displayed.
To install, I downloaded your repository then copied it to the admin/ui directory. Is that sufficient or does anything else need to be done?
Yes. I found a way to catch if you are leaving send page or just leaving a send tab, but i didn't found a way to catch on send page if there is an unsaved change. I did that in settings page, but not on send page.
So at this point, this is the best i can do for now:
- on setting page warning popup if you are leaving page clicking on left menu and with unsaved changes.
- on send page warning popup if you are leaving page clicking on the left menu, with or without unsaved changes.