From c32290e1fc8bddfc5cc6dc0aa0ecf4179d438758 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 27 Jan 2016 13:22:05 +0000 Subject: [PATCH] internal: new autoOpen flag. SVN:2.2.0[3888] --- application/forms.class.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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( <<