Changeset 6858
- Timestamp:
- 12/31/07 17:06:51 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfExtjsThemePlugin/data/generator/sfPropelAdmin/extjs/template/templates/_list_ajax_renderer.php
r6788 r6858 33 33 $headerText = ""; 34 34 35 // default value if groups are collapsable 36 $default_collapse = true; 37 35 38 //iterate through all columns for grouping display 36 39 foreach ($columns as $columnName => $column) … … 79 82 if ($column->isLink()) 80 83 { 84 // if the group header contains a link, disable collapsing 85 $default_collapse = false; 81 86 //TODO remove hardcoded tag for underline, add option to set stylesheet-class, don't forget to remove the closing tag as well... 82 87 $headerText .= "<u><a href=\'".$controller->genUrl($h_moduleName."/edit?".$url_pkn."=")."/'+record.data['".$record_pkn."']+'\'>"; … … 87 92 $headerText .= "</a></u>"; 88 93 } 94 } 95 96 $collapse = $this->getParameterValue('list.grouping.collapsable', $default_collapse); 97 //if not collapsable change css 98 if (!$collapse) 99 { 100 // TODO: this does not (reliably) seem to work, maybe we should move this to the action.class 101 $response = sfContext::getInstance()->getResponse(); 102 $response->addStylesheet('/sfExtjsThemePlugin/css/collapsing-disabled', 'last'); 103 ?> 104 //disable collapsable group-headers 105 Ext.override(Ext.grid.GroupingView, { 106 interceptMouse : Ext.emptyFn 107 }); 108 109 <?php 89 110 } 90 111 }