mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
internal: new autoOpen flag.
SVN:2.2.0[3888]
This commit is contained in:
@@ -339,7 +339,7 @@ EOF
|
||||
return '</tr>';
|
||||
}
|
||||
|
||||
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('</div>');
|
||||
|
||||
$sAutoOpen = $bAutoOpen ? 'true' : 'false';
|
||||
$oPage->add_ready_script(
|
||||
<<<EOF
|
||||
$('#$sDialogId').dialog({
|
||||
height: 'auto',
|
||||
width: $iDialogWidth,
|
||||
modal: true,
|
||||
autoOpen: $sAutoOpen,
|
||||
title: '$sDialogTitle',
|
||||
buttons: [
|
||||
{ text: "$sOkButtonLabel", click: function() {
|
||||
|
||||
Reference in New Issue
Block a user