diff options
Diffstat (limited to 'lib/prado/framework/Web/UI/JuiControls/TJuiDialog.php')
-rw-r--r-- | lib/prado/framework/Web/UI/JuiControls/TJuiDialog.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/prado/framework/Web/UI/JuiControls/TJuiDialog.php b/lib/prado/framework/Web/UI/JuiControls/TJuiDialog.php index cd349f1..3c5e351 100644 --- a/lib/prado/framework/Web/UI/JuiControls/TJuiDialog.php +++ b/lib/prado/framework/Web/UI/JuiControls/TJuiDialog.php @@ -82,7 +82,7 @@ class TJuiDialog extends TActivePanel implements IJuiOptions, ICallbackEventHand */ public function getValidOptions() { - return array('appendTo', 'autoOpen', 'buttons', 'closeOnEscape', 'closeText', 'dialogClass', 'draggable', 'height', 'hide', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth', 'modal', 'position', 'resizeable', 'show', 'title', 'width'); + return array('appendTo', 'autoOpen', 'buttons', 'closeOnEscape', 'closeText', 'dialogClass', 'draggable', 'height', 'hide', 'minHeight', 'minWidth', 'maxHeight', 'maxWidth', 'modal', 'position', 'resizable', 'show', 'title', 'width'); } /** @@ -100,6 +100,9 @@ class TJuiDialog extends TActivePanel implements IJuiOptions, ICallbackEventHand protected function getPostBackOptions() { $options = $this->getOptions()->toArray(); + // always make the dialog a child of the form, or its inner inputs won't be collected + if(!isset($options['appendTo'])) + $options['appendTo'] = 'form:first'; foreach($this->getControls() as $control) if($control instanceof TJuiDialogButton) |