summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/ActiveControls')
-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);
}
}
?>