diff options
Diffstat (limited to 'framework/Web/UI')
-rw-r--r-- | framework/Web/UI/ActiveControls/TCallbackClientScript.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TCallbackClientScript.php b/framework/Web/UI/ActiveControls/TCallbackClientScript.php index 837b5b51..523a4b56 100644 --- a/framework/Web/UI/ActiveControls/TCallbackClientScript.php +++ b/framework/Web/UI/ActiveControls/TCallbackClientScript.php @@ -296,7 +296,12 @@ class TCallbackClientScript extends TApplicationComponent */
public function setStyle($element, $styles)
{
- $this->callClientFunction('Element.setStyle', array($element, $styles));
+ $s=array(); + foreach ($styles as $key=>$value) + { + $s[]=$key.": ".$value; + } + $this->callClientFunction('Element.setStyle', array($element, $s));
}
/**
|