summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorChristophe.Boulain <>2009-04-08 07:10:01 +0000
committerChristophe.Boulain <>2009-04-08 07:10:01 +0000
commitca080e5dc8ff461f63f2e22e83a3b3898642c5ba (patch)
tree7ed8894db484a8f3acb4bba2e309130c7e2444bb /framework/Web/UI
parentd042fed88e7ed55e2a7deee037c8073e6c545290 (diff)
Diffstat (limited to 'framework/Web/UI')
-rwxr-xr-xframework/Web/UI/ActiveControls/TActiveDatePicker.php26
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);
}
}
?>