Remove X from dialog page

Sometime you want to force users not ‘just’ to close the dialog by a ‘x’, but by a button with some actions in the background. To remove the X you have to add CSS-code in the parent page: button.ui-button.ui-corner-all.ui-widget.ui-button-icon-only.ui-dialog-titlebar-close { visibility: hidden !important; display:none; }