Development

Changeset 3499

You must first sign up to be able to contribute.

Changeset 3499

Show
Ignore:
Timestamp:
02/18/07 11:19:57 (2 years ago)
Author:
fabien
Message:

fixed style of actions button in list in admin generator (closes #1394 - patch from jerome)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/generator/sfAdminGenerator.class.php

    r3324 r3499  
    125125    $url_params = $pk_link ? '?'.$this->getPrimaryKeyUrlParams() : '\''; 
    126126 
    127     if (!isset($options['class']) && $default_class) 
    128     { 
    129       $options['class'] = $default_class; 
    130     } 
    131     else 
    132     { 
    133       $options['style'] = 'background: #ffc url('.$icon.') no-repeat 3px 2px'; 
     127    if (!isset($options['class'])) 
     128    { 
     129      if ($default_class) 
     130      { 
     131        $options['class'] = $default_class; 
     132      } 
     133      else 
     134      { 
     135        $options['style'] = 'background: #ffc url('.$icon.') no-repeat 3px 2px'; 
     136      } 
    134137    } 
    135138