Development

Changeset 12028

You must first sign up to be able to contribute.

Changeset 12028

Show
Ignore:
Timestamp:
10/07/08 13:48:52 (2 months ago)
Author:
KRavEN
Message:

Fixed a bug where the naming of the rowaction callback partial name
Fixed a bug where the callback partial wasn't being created

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfExtjsThemePlugin/trunk/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_rowactions_js.php

    r12003 r12028  
    5858  foreach ((array) $listActions as $actionName => $params): 
    5959    if($actionName[0] == '_' || isset($params['handler_function'])) continue; 
    60     $this->createPartialFile('_list_ajax_action_'.$actionName,'<?php // @object $sfExtjs2Plugin and @object $rowactions provided 
    61   $configArr["source"] = "Ext.Msg.alert(\'Error\',\'handler_function is not defined!<br><br>Edit the template \"_list_ajax_action_'.$actionName.'.php\" in your application/modules/'.strtolower($this->getModuleName()).'/templates folder and alter it or define the \"handler_function\" in your generator.yml file\');"; 
     60    $this->createPartialFile('_list_ajax_rowaction_'.$actionName,'<?php // @object $sfExtjs2Plugin and @object $rowactions provided 
     61  $configArr["source"] = "Ext.Msg.alert(\'Error\',\'callback is not defined!<br><br>Copy the template file from cache \"_list_ajax_action_'.$actionName.'.php\" to your application/modules/'.strtolower($this->getModuleName()).'/templates folder and alter it or define the \"callback\" in your generator.yml file\');"; 
    6262  $rowactions->attributes["'.$actionName.'"] = $sfExtjs2Plugin->asMethod($configArr); 
    6363?>'); 
    6464?> 
    65 include_partial('<?php echo 'list_ajax_action_'.$actionName ?>', array('sfExtjs2Plugin' => $sfExtjs2Plugin, 'rowactions' => $rowactions)); 
     65include_partial('<?php echo 'list_ajax_rowaction_'.$actionName ?>', array('sfExtjs2Plugin' => $sfExtjs2Plugin, 'rowactions' => $rowactions)); 
    6666<?php endforeach;?> 
    6767