From 63576250311be8d296ee19696280e3e165ce761e Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 20 Jan 2006 01:25:05 +0000 Subject: Move init of js datepicker to Event.OnLoad to avoid IE error --- framework/Web/UI/WebControls/TDatePicker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls') 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); } } -- cgit v1.2.3