Changeset 6470
- Timestamp:
- 12/11/07 22:58:09 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_json_list_td.php
r6328 r6470 27 27 $checkName = $columnName; 28 28 } 29 // TODO: this is a hack! this should be fixed by letting getColumnAjaxTag take the relative $columnName into account, something like $this->getColumnAjaxTag($column, $checkName or $columnName)30 // Due to this hack the column looses all info (like type, length, etc)31 $column = $this->getAdminColumnForField($checkName);32 29 33 30 if (in_array($checkName, $hs)) continue; … … 46 43 } 47 44 45 if (!$column->isPartial()) 46 { 47 // TODO: this is a hack! this should be fixed by letting getColumnAjaxTag take the relative $columnName into account, something like $this->getColumnAjaxTag($column, $checkName or $columnName) 48 // Due to this hack the column looses all info (like type, length, etc) 49 $column = $this->getAdminColumnForField($checkName); 50 } 51 48 52 // unfortunately we cannot use the '/' to distinquish the class and the field, because the name is used as variable in _list_ajax_layout.php 49 53 echo "\"".str_replace('/', $tableDelimiter, $columnName)."\": \"[?php echo str_replace('\"', '\\\"', ".$this->getColumnAjaxTag($column).") ?]\""; plugins/sfExtjsThemePlugin/lib/sfExtjsPropelAdminGenerator.php
r6437 r6470 900 900 if ('.$store.'.find(\''.str_replace('/', $tableDelimiter, $checkName).'\', this.getRawValue() ) == -1) {'. 901 901 902 'this.window'. $relatedTableName.' = '.$sfExtjs2Plugin->Window(array(902 'this.window'.ucfirst($relatedTableName).' = '.$sfExtjs2Plugin->Window(array( 903 903 'title' => 'Add new '.$relatedTableName, 904 904 'border' => 'false', … … 909 909 )).";\n" 910 910 911 .'this.window'. $relatedTableName.'.show();911 .'this.window'.ucfirst($relatedTableName).'.show(); 912 912 913 913 }