Changeset 8992
- Timestamp:
- 05/16/08 03:00:20 (2 months ago)
- Files:
-
- plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/actions/actions.class.php (modified) (1 diff)
- plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_edit_ajax_form.php (modified) (3 diffs)
- plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/editAjaxJsSuccess.pjs (modified) (3 diffs)
- plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/jsonSaveSuccess.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/actions/actions.class.php
r8803 r8992 300 300 foreach ($this->getPrimaryKey() as $pk) 301 301 { 302 $params[ ] = $this->getColumnGetter($pk, true, 'this->');302 $params['id'] = $this->getColumnGetter($pk, true, 'this->'); 303 303 } 304 304 ?> 305 return $this->renderText('{ success: true, message: "Your modifications have been saved", id: "'.<?php echo $params[0] ?>.'" }'); 305 $this->id = <?php echo $params['id'] ?>; 306 307 $this->setTemplate('jsonSave'); 306 308 } 307 309 plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_edit_ajax_form.php
r8990 r8992 54 54 var old_key = this.ownerCt.key; 55 55 this.ownerCt.key = action.result.id; //(re)set the key (needed to track new items) 56 this.ownerCt.setTitle(action.result.title); 56 57 57 58 //fire saved event … … 118 119 'url' => '<?php echo $controller->genUrl($this->getModuleName().'/ajaxEdit') ?>', 119 120 'method' => 'post', 120 'title' => <?php echo $this->getI18NString($edit_key.'.title', 'Edit '.$this->getModuleName(), false) ?>,121 121 122 122 <?php if (($width = $this->getParameterValue('edit.width', 400)) != 'fill'): ?> … … 156 156 //call parent 157 157 Ext.app.sx.<?php echo $formName ?>.superclass.initComponent.apply(this, arguments); 158 158 159 159 // this.addEvents( 160 160 // ); plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/editAjaxJsSuccess.pjs
r8990 r8992 115 115 'waitMsg' => 'Loading data', 116 116 'success' => $sfExtjs2Plugin->asVar('this.onLoadSuccess'), 117 'scope' => $sfExtjs2Plugin->asVar('this'), 117 118 ))."; 118 119 … … 131 132 132 133 $sfExtjs2_<?php echo $moduleName ?>_onLoadSuccess = " 133 //this.setTitle(action.reader.jsonData.title);134 this.setTitle(action.reader.jsonData.title); 134 135 "; 135 136 … … 152 153 Ext.Msg.alert('Delete Status',message); 153 154 154 //fire saved event155 //fire deleted event 155 156 this.fireEvent('deleted', this); 156 157 },