From f21d3433721308f5d0693f44bbfed56f7b2ecc2d Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 5 May 2006 00:45:35 +0000 Subject: Adding TActiveLabel --- framework/Web/UI/ActiveControls/TCallbackClientScript.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TCallbackClientScript.php') diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php index aaf81380..5f8851db 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php @@ -318,20 +318,16 @@ class TCallbackClientScript extends TApplicationComponent if($content instanceof TControl) { $boundary = $this->getRenderedContentBoundary($content); - $this->callClientFunction('Prado.Element.replaceContent', - array($element, $method, null, $boundary)); + $content = null; } else if($content instanceof THtmlWriter) { $boundary = $this->getResponseContentBoundary($content); - $this->callClientFunction('Prado.Element.replaceContent', - array($element, $method, null, $boundary)); - } - else - { - $this->callClientFunction('Prado.Element.replaceContent', - array($element, $method, $content, $boundary)); + $content = null; } + + $this->callClientFunction('Prado.Element.replace', + array($element, $method, $content, $boundary)); } /** -- cgit v1.2.3