Development

Changeset 31845

You must first sign up to be able to contribute.

Changeset 31845

Show
Ignore:
Timestamp:
01/18/11 15:02:02 (2 years ago)
Author:
sergiovier
Message:

refactored render of link widget

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfAlyssaJqGridPlugin/trunk/lib/widget/sfWidgetAlyssaJqGridLink.class.php

    r29655 r31845  
    4949    // options for render 
    5050    $this->addOption('icon', 'ui-icon-document'); 
    51     $this->addOption('label', null); 
    5251 
    5352    //    # icon class as: ui-icon-value 
     
    7776  public function render($name, $value = null, $attributes = array(), $errors = array()) 
    7877  { 
    79     sfContext::getInstance()->getConfiguration()->loadHelpers(array('Url', 'Tag')); 
    80  
    8178    $name = $this->getOption('label') ? $this->getOption('label') : $name; 
    8279    // add styles for a link button in jquery 
     
    8481    $attributes['class'] = 'fg-button-mini fg-button ui-state-default fg-button-icon-left'; 
    8582 
    86     return link_to($name, $this->getUri(), $attributes); 
     83    return parent::render($name, $value, $attributes, $errors); 
    8784  } 
    8885