From a7f6c6640ac9295eec3ae2edbb2250179eb85e33 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 6 May 2006 02:26:20 +0000 Subject: Adding TActiveButton and TActiveTextBox --- framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php') diff --git a/framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php b/framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php index 8c6732e3..3eadcd29 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientSideOptions.php @@ -221,11 +221,12 @@ class TCallbackClientSideOptions extends TClientSideOptions /** * @return boolean true if the callback request has priority and will abort * existing prioritized request in order to send immediately. It does not - * affect callbacks that are not prioritized. + * affect callbacks that are not prioritized. Default is true. */ public function getHasPriority() { - return $this->getOption('HasPriority'); + $option = $this->getOption('HasPriority'); + return is_null($option) ? true : $option; } /** @@ -257,11 +258,12 @@ class TCallbackClientSideOptions extends TClientSideOptions /** * @return boolean client-side viewstate will be updated on callback - * response if true. + * response if true. Default is true. */ public function getEnablePageStateUpdate() { - return $this->getOption('EnablePageStateUpdate'); + $option = $this->getOption('EnablePageStateUpdate'); + return is_null($option) ? true : $option; } } -- cgit v1.2.3