Show
Ignore:
Timestamp:
08/18/2008 06:00:14 PM (4 months ago)
Author:
knut
Message:

fixed #876

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/UI/WebControls/TTabPanel.php

    r2482 r2501  
    176176    public function getCssUrl() 
    177177    { 
    178         return $this->getViewState('CssUrl',''); 
     178        return $this->getViewState('CssUrl','default'); 
    179179    } 
    180180 
     
    384384        protected function registerStyleSheet() 
    385385        { 
    386                 if(($url=$this->getCssUrl())==='') 
    387                         $url=$this->getApplication()->getAssetManager()->publishFilePath(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'tabpanel.css'); 
    388                 $this->getPage()->getClientScript()->registerStyleSheetFile($url,$url); 
     386                $url = $this->getCssUrl(); 
     387                 
     388                if($url === '') { 
     389                        return; 
     390                } 
     391                 
     392                if($url === 'default') { 
     393                        $url = $this->getApplication()->getAssetManager()->publishFilePath(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'tabpanel.css'); 
     394                } 
     395                 
     396                if($url !== '') { 
     397                        $this->getPage()->getClientScript()->registerStyleSheetFile($url, $url); 
     398                } 
    389399        } 
    390400