In a ctool modal form for Panels inside IPE Panels, submitting the panel form allows you to leave the page w/o an ajax pop-up

Created on 13 October 2016, almost 9 years ago
Updated 11 June 2025, about 2 months ago

We have the very specific case that we edit our panels within IPE Panels using ctool modal forms.
Which means that when we create a panel, we still have to save the layout page to confirm the changes.

I noticed that when I created a panel without saving the layout page, I could leave the page however i wanted without the Ajax pop-up

Do you want to leave this site?
Changes you made may not be saved.

This is because in the onUserExit.js file all forms submits will call the function
userMovingWithinSite();

I added an extra check, to see if the form is not part of a modal form.

πŸ› Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium michel.g

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024