From 99a8784827a320659e8f17ba33e71f2dfb3ef03f Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 21 Nov 2013 13:43:12 +0100 Subject: Fixed a bug in TDatePicker rendering an unused TTextBox --- framework/Web/UI/WebControls/TDatePicker.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls/TDatePicker.php') diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index a67997b8..0e8d7bda 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -436,7 +436,7 @@ class TDatePicker extends TTextBox $this->renderDropDownListCalendar($writer); if($this->hasDayPattern()) { - $this->registerCalendarClientScriptPost(); + $this->renderClientControlScript($writer); $this->renderDatePickerButtons($writer); } } @@ -858,10 +858,8 @@ class TDatePicker extends TTextBox { parent::addAttributesToRender($writer); $writer->addAttribute('id',$this->getClientID()); - $this->registerCalendarClientScriptPost(); } - /** * Registers the javascript code to initialize the date picker. */ @@ -874,7 +872,7 @@ class TDatePicker extends TTextBox } } - protected function registerCalendarClientScriptPost() + protected function renderClientControlScript($writer) { if($this->getShowCalendar()) { -- cgit v1.2.3