Changeset 8898
- Timestamp:
- 05/10/08 16:09:30 (6 days ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_toolbar_top_js.php
r8897 r8898 35 35 36 36 <?php foreach ((array) $listActions as $actionName => $params): ?> 37 <?php echo $this->addCredentialCondition("\$config['attributes']['items'][] = \$sfExtjs2Plugin-> ".$this->getAjaxButtonToToolbarAction2($actionName, $params, false).";\n\n", $params) ?>37 <?php echo $this->addCredentialCondition("\$config['attributes']['items'][] = \$sfExtjs2Plugin->asAnonymousClass(array(".$this->getAjaxButtonToToolbarAction2($actionName, $params, false)."));\n\n", $params) ?> 38 38 <?php endforeach ?> 39 39 plugins/sfExtjsThemePlugin/lib/sfExtjsPropelAdminGenerator.php
r8897 r8898 234 234 case 'spacer': 235 235 case 'fill': 236 return ucfirst($actionName)."(array())";236 return "'xtype' => 'tb".$actionName."'"; 237 237 break; 238 238 case 'delete': … … 350 350 // id: 'btn_".$actionName."', 351 351 $jsOptions = " 352 'xtype' => 'tbbutton', //TODO add option for MenuButtons and possibly others 352 353 'text' => '".$name."', 353 354 'action' => '".$action."', … … 358 359 "; 359 360 360 //toolbar is defined in the list 361 $html = "Button(array(".$jsOptions."));"; //TODO add option for MenuButtons and possibly others... 362 363 return $html; 361 return $jsOptions; 364 362 } 365 363