Skip to content
Snippets Groups Projects
Commit 48dec6c8 authored by srosse's avatar srosse
Browse files

OO-1822: add the option to suppress the dirty form warning on close of popup

parent d8ce6405
No related branches found
No related tags found
No related merge requests found
......@@ -124,6 +124,17 @@ public class CloseableModalController extends DefaultController {
setInitialComponent(myContent);
}
/**
* Suppress the form warning on close. This can be used for selection
* popup.
*
*/
public void suppressDirtyFormWarningOnClose() {
if(closeIcon != null) {
closeIcon.setSuppressDirtyFormWarning(true);
}
}
public void setCustomCSS(String className){
myContent.contextPut("cssClass", className);
}
......
......@@ -360,6 +360,7 @@ public class MembersMailController extends FormBasicController {
String title = translate("select.members");
cmc = new CloseableModalController(getWindowControl(), translate("close"), selectMemberCtrl.getInitialComponent(), true, title);
cmc.suppressDirtyFormWarningOnClose();
listenTo(cmc);
cmc.activate();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment