Development

Changeset 6646

You must first sign up to be able to contribute.

Changeset 6646

Show
Ignore:
Timestamp:
12/20/07 21:02:44 (1 year ago)
Author:
kubens
Message:

Little Bugfixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjs2Plugin/trunk/config/config.php

    r6621 r6646  
    11<?php 
    2 sfConfig::set('sf_extjs2_version', 'v0.50'); 
     2sfConfig::set('sf_extjs2_version', 'v0.51'); 
    33sfConfig::set('sf_extjs2_comment', true); 
    44# 
     
    5050# attributes which must handled as array 
    5151# 
    52 sfConfig::set('sf_extjs2_list_attributes', array('items', 'tbar', 'buttons', 'plugins', 'view', 'tbar', 'bbar', 'fields')); 
     52sfConfig::set('sf_extjs2_list_attributes', array('items', 'tbar', 'bbar', 'buttons', 'plugins', 'view', 'fields')); 
    5353# 
    5454# array values that don't need quotes 
     
    8686    'Item'           => 'Ext.menu.Item',    
    8787    'CheckItem'      => 'Ext.menu.CheckItem',   
     88    'Toolbar'        => 'Ext.Toolbar', 
    8889    'MenuButton'     => 'Ext.Toolbar.MenuButton', 
    8990    'KeyMap'         => 'Ext.KeyMap' 
     
    249250 
    250251 
     252sfConfig::set('Ext.Toolbar', 
     253  array( 
     254    'class'       => 'Ext.Toolbar', 
     255    'attributes'  => array() 
     256  ) 
     257); 
     258 
    251259sfConfig::set('Ext.Toolbar.MenuButton', 
    252260  array( 
  • plugins/sfExtjs2Plugin/trunk/lib/helper/sfExtjs2Helper.php

    r6621 r6646  
    55 * @description      sfExtjs2Plugin is a symfony plugin that provides an easy to use wrapper for the Ext javascript library 
    66 * @author           Benjamin Runnels<benjamin.r.runnels [at] citi [dot] com>, Leon van der Ree, Wolfgang Kubens<wolfgang.kubens [at] gmx [dot] net> 
    7  * @version          0.0.50 
     7 * @version          0.0.51 
    88 * @last modified    12.19.2007 Wolfgang 
    99 *                    - Added method asVar 
     
    163163      unset($attributes['parameters']); 
    164164    } 
    165    
     165  
    166166    # syntax A is a shortform of syntax B 
    167167    # if syntax A is used then convert syntax A to syntax B 
     
    182182      } 
    183183    } 
    184    
     184 
    185185    // get source of component 
    186186    $source = call_user_func(array('sfExtjs2Plugin', 'getExtObjectComponent'), $attributes['attributes'], sfConfig::get($class), $parameters); 
    187    
     187 
    188188    // if 'name' is assigned then we must render 
    189189    // either a Javascript variable or an attribute of this 
     
    244244          'new %s (%s%s%s)', 
    245245          $config['class'], 
    246           $parameters != '' ? $parameters : '', 
     246          $parameters != '' ? '['.$parameters.']' : '', 
    247247          $parameters != '' && $attributes != '' ? ',' : '', 
    248248          $attributes