summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-02-25 11:44:53 +0100
committerFabio Bas <ctrlaltca@gmail.com>2016-02-25 11:44:53 +0100
commit294682fb45014ba04ce1b193af712208b15a6151 (patch)
treeb7158151c2521bc6379bc27bba3cad02632b3bf9 /framework/Web/UI
parent04945175ef0ac4cb099432770b5a61b9a3370284 (diff)
TJuiDialog: avoid "cannot call methods on dialog prior to initialization" error
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/JuiControls/TJuiDialog.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/JuiControls/TJuiDialog.php b/framework/Web/UI/JuiControls/TJuiDialog.php
index e02157d0..cd349f1a 100644
--- a/framework/Web/UI/JuiControls/TJuiDialog.php
+++ b/framework/Web/UI/JuiControls/TJuiDialog.php
@@ -161,7 +161,7 @@ class TJuiDialog extends TActivePanel implements IJuiOptions, ICallbackEventHand
private function triggerClientMethod($method)
{
$cs = $this->getPage()->getClientScript();
- $code = "jQuery('#".$this->getClientId()."').dialog('".$method."');";
+ $code = "jQuery(document).ready(function() { jQuery('#".$this->getClientId()."').dialog('".$method."'); })";
$cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
}