Development

Changeset 6876

You must first sign up to be able to contribute.

Changeset 6876

Show
Ignore:
Timestamp:
01/01/08 11:02:11 (1 year ago)
Author:
Leon.van.der.Ree
Message:

Fixed problem with conditionally loading CSS

Files:

Legend:

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

    r6858 r6876  
    9696  $collapse = $this->getParameterValue('list.grouping.collapsable', $default_collapse); 
    9797  //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 
     98  if (!$collapse) : 
     99?> 
     100[?php 
    101101    $response = sfContext::getInstance()->getResponse(); 
    102102    $response->addStylesheet('/sfExtjsThemePlugin/css/collapsing-disabled', 'last'); 
    103 ?> 
     103?] 
    104104    //disable collapsable group-headers 
    105105    Ext.override(Ext.grid.GroupingView, { 
     
    108108     
    109109<?php 
    110   } 
     110  endif; 
    111111} 
    112112else // no grouping.display defined use grouping.field