Show
Ignore:
Timestamp:
03/18/2008 04:57:53 AM (10 months ago)
Author:
tof
Message:

Fixed a bug in TCallbackClientScript::setStyle method.
Add a JS function to 'camelize' the styles properties

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/ActiveControls/TCallbackClientScript.php

    r2404 r2414  
    297297        public function setStyle($element, $styles) 
    298298        { 
    299                 $s=array(); 
    300                 foreach ($styles as $key=>$value) 
    301                 { 
    302                         $s[]=$key.": ".$value; 
    303                 } 
    304                 $this->callClientFunction('Element.setStyle', array($element, $s)); 
     299                $this->callClientFunction('Prado.Element.setStyle', array($element, $styles)); 
    305300        } 
    306301