diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php index f227e85cf..5493171e4 100644 --- a/application/forms.class.inc.php +++ b/application/forms.class.inc.php @@ -339,7 +339,7 @@ EOF return ''; } - public function RenderAsDialog($oPage, $sDialogId, $sDialogTitle, $iDialogWidth, $sOkButtonLabel, $sIntroduction = null) + public function RenderAsDialog($oPage, $sDialogId, $sDialogTitle, $iDialogWidth, $sOkButtonLabel, $sIntroduction = null, $bAutoOpen = true) { $this->SetPrefix('dlg_'); // To make sure that the controls have different IDs that the property sheet which may be displayed at the same time @@ -355,12 +355,14 @@ EOF $this->Render($oPage); $oPage->add(''); + $sAutoOpen = $bAutoOpen ? 'true' : 'false'; $oPage->add_ready_script( <<