From e19ac3ebece43a1e2b7d2c3aa1df1e311da8c7c9 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 18 Mar 2008 09:57:53 +0000 Subject: Fixed a bug in TCallbackClientScript::setStyle method. Add a JS function to 'camelize' the styles properties --- framework/Web/UI/ActiveControls/TCallbackClientScript.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'framework/Web/UI/ActiveControls') diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php index 523a4b56..4ddb0654 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php @@ -295,13 +295,8 @@ class TCallbackClientScript extends TApplicationComponent * @param array list of key-value pairs as style property and style value. */ public function setStyle($element, $styles) - { - $s=array(); - foreach ($styles as $key=>$value) - { - $s[]=$key.": ".$value; - } - $this->callClientFunction('Element.setStyle', array($element, $s)); + { + $this->callClientFunction('Prado.Element.setStyle', array($element, $styles)); } /** -- cgit v1.2.3