diff options
author | wei <> | 2006-01-20 01:25:05 +0000 |
---|---|---|
committer | wei <> | 2006-01-20 01:25:05 +0000 |
commit | 63576250311be8d296ee19696280e3e165ce761e (patch) | |
tree | 840e86735d3912ff25c721b49971347be42b2bcc /framework/Web/UI/WebControls/TDatePicker.php | |
parent | 05b3992f9e8a1d6174b30d27674e7192098cc0c4 (diff) |
Move init of js datepicker to Event.OnLoad to avoid IE error
Diffstat (limited to 'framework/Web/UI/WebControls/TDatePicker.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDatePicker.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index a8fb363e..125b97c3 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -235,7 +235,7 @@ class TDatePicker extends TTextBox $serializer = new TJavascriptSerializer($this->getDatePickerOptions());
$options = $serializer->toJavascript();
$id = $this->getClientID();
- $code = "new Prado.WebUI.TDatePicker('$id', $options);";
+ $code = "Event.OnLoad(function(){ new Prado.WebUI.TDatePicker('$id', $options); });";
$scripts->registerEndScript("prado:$id", $code);
}
}
|