From e90a074753e4e5b9c65fc80eaf48526eb3824f15 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 1 Aug 2006 01:01:06 +0000 Subject: Fixed #302 --- HISTORY | 1 + framework/Exceptions/messages.txt | 4 +++- framework/Web/UI/WebControls/TDatePicker.php | 9 +++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 2cab7a14..20d62166 100644 --- a/HISTORY +++ b/HISTORY @@ -5,6 +5,7 @@ BUG: Ticket#268 - THttpResponse.redirect() may fail for some browsers (Qiang) BUG: Ticket#297 - THttpRequest::constructUrl() encoding bug about array GET parameters (Qiang) BUG: TDataGrid may complain getting ItemType on a non-object if the grid is not data-bound (Qiang) BUG: TCheckBox.Value should be converted to string (Qiang) +BUG: Ticket#302 - TDatePicker's bug with AutoPostBack set to "true" (Wei) BUG: Ticket#311 - Several bugs in TDatePicker (Wei) BUG: Ticket#312 - TDatePicker's ReadOnly property bug (Wei) CHG: Ticket#206 - TBaseValidator.OnValidate is raised only when the validator is visible (Qiang) diff --git a/framework/Exceptions/messages.txt b/framework/Exceptions/messages.txt index a807130c..54d9d085 100644 --- a/framework/Exceptions/messages.txt +++ b/framework/Exceptions/messages.txt @@ -318,4 +318,6 @@ databoundcontrol_datasourceid_inexistent = databoundcontrol_datasourceid_inexist databoundcontrol_datasourceid_invalid = databoundcontrol_datasourceid_invalid databoundcontrol_datamember_invalid = databoundcontrol_datamember_invalid -clientscript_invalid_file_position = Invalid file position '{1}' for TClientScript control '{0}', must be 'Head', 'Here' or 'Begin'. \ No newline at end of file +clientscript_invalid_file_position = Invalid file position '{1}' for TClientScript control '{0}', must be 'Head', 'Here' or 'Begin'. + +tdatepicker_autopostback_unsupported = '{0}' does not support AutoPostBack. \ No newline at end of file diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php index f0d00119..6852f9eb 100644 --- a/framework/Web/UI/WebControls/TDatePicker.php +++ b/framework/Web/UI/WebControls/TDatePicker.php @@ -68,6 +68,15 @@ Prado::using('System.Web.UI.WebControls.TTextBox'); */ class TDatePicker extends TTextBox { + /** + * AutoPostBack is not supported. + */ + public function setAutoPostBack($value) + { + throw new TNotSupportedException('tdatepicker_autopostback_unsupported', + get_class($this)); + } + /** * @return string the format of the date string */ -- cgit v1.2.3