2
Views
6
Comments
Stop popup from closing
Question
Hi,

I'm using the popup editor from Richwidgets 5.1.
I have a situation where I don't want a user clicking the cross on the top right corner to close the popup window.
Is there a way to stop the popup window from closing or the cross from appearing?

regards
2011-06-15 10-51-08
Tiago Dias
Btw, this need occurs in a BPT project. The popup is used to show a process step and closing the popup should release the activity.
2013-01-31 21-55-49
André Alho
Hi,

I've been using a modified version of RichWidgets. Be aware with new releases of EnterpriseManager.

Cheers
RichWidgets.oml
2018-11-09 09-14-06
Gonçalo Almeida
Thanks André. Perhaps the OutSystems team could consider adding your modification to the standard version.
I'll consider this option if there is no way to stop the popup from closing.

Can someone help?
2011-08-23 22-04-05
Tiago Simões
Staff
Hi Gonçalo,

Looking to the cool solution André came up, another option you have (if you do not want a modified richwidgets) is to just add this CSS
.ui-dialog-titlebar-close{ display:none; }
to the Web Screen or eSpace Style Sheet.

Cheers,
Tiago Simões
2018-11-09 09-14-06
Gonçalo Almeida
Hi Tiago,

It doesn't seem to work whether I put it in the Espace stylesheet or the webscreen.
Apparently it has to be inside the richwidgets.

regards

EDIT: It works if I fill the "title" property for the popup. If I leave it empty, it doesn't work.
EDIT2: It only works if I put in on the Espace stylesheet. It doesn't work if I put it in the webscreen stylesheet.
2018-11-09 09-14-06
Gonçalo Almeida
Hey everyone,

I found that using

.ui-dialog-titlebar { display:none; }

rather than

.ui-dialog-titlebar-close{ display:none; }

removes the titlebar completely and so I don't have to worry about filling the title. Problem solved. Thanks everyone.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.