Annoying popup

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/4/2017 12:51:06 PM
Gravatar
Total Posts 30

Annoying popup

I have created a customized events module. In the edit page of the events, when I clicks Save button, I always get a warning popup: Are you sure you want to leave this site? 

 

Can someone tell me how to fix this issue?

 

Best regards.

6/16/2017 3:59:18 PM
Gravatar
Total Posts 2239

Re: Annoying popup

This is probably coming from the WYSIWYG editor which is calling the hookupGoodbyePrompt javascript method. 

To stop it from happening on your save button, add UIHelper.AddClearPageExitCode(btnSave); to your code-behind. We typically add this in the PopulateLabels method.

Hope this helps,
Joe

 

You must sign in to post in the forums. This thread is closed to new posts.