diff options
author | Christophe.Boulain <> | 2009-04-08 07:10:01 +0000 |
---|---|---|
committer | Christophe.Boulain <> | 2009-04-08 07:10:01 +0000 |
commit | ca080e5dc8ff461f63f2e22e83a3b3898642c5ba (patch) | |
tree | 7ed8894db484a8f3acb4bba2e309130c7e2444bb /framework/Web/UI/ActiveControls/TActiveDatePicker.php | |
parent | d042fed88e7ed55e2a7deee037c8073e6c545290 (diff) |
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveDatePicker.php')
-rwxr-xr-x | framework/Web/UI/ActiveControls/TActiveDatePicker.php | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveDatePicker.php b/framework/Web/UI/ActiveControls/TActiveDatePicker.php index 4ef43198..fafd21e5 100755 --- a/framework/Web/UI/ActiveControls/TActiveDatePicker.php +++ b/framework/Web/UI/ActiveControls/TActiveDatePicker.php @@ -109,22 +109,20 @@ class TActiveDatePicker extends TDatePicker implements ICallbackEventHandler, I */ protected function registerCalendarClientScript() { - // if($this->getShowCalendar()) - // { - $cs = $this->getPage()->getClientScript(); - $cs->registerPradoScript("activedatepicker"); + + $cs = $this->getPage()->getClientScript(); + $cs->registerPradoScript("activedatepicker"); - if(!$cs->isEndScriptRegistered('TDatePicker.spacer')) - { - $spacer = $this->getAssetUrl('spacer.gif'); - $code = "Prado.WebUI.TDatePicker.spacer = '$spacer';"; - $cs->registerEndScript('TDatePicker.spacer', $code); - } + if(!$cs->isEndScriptRegistered('TDatePicker.spacer')) + { + $spacer = $this->getAssetUrl('spacer.gif'); + $code = "Prado.WebUI.TDatePicker.spacer = '$spacer';"; + $cs->registerEndScript('TDatePicker.spacer', $code); + } - $options = TJavaScript::encode($this->getDatePickerOptions()); - $code = "new Prado.WebUI.TActiveDatePicker($options);"; - $cs->registerEndScript("prado:".$this->getClientID(), $code); - // } + $options = TJavaScript::encode($this->getDatePickerOptions()); + $code = "new Prado.WebUI.TActiveDatePicker($options);"; + $cs->registerEndScript("prado:".$this->getClientID(), $code); } } ?> |