mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX SSF-124 remove $extraClass in the sortable header of GridField, simply add an 'col-$getName' as the distinguishable class for each column header, so as not to lose the css selector
This commit is contained in:
parent
54905b077b
commit
6671ae7ee9
@ -85,7 +85,6 @@ class GridFieldSortableHeader implements GridField_HTMLProvider, GridField_DataM
|
||||
}
|
||||
} else {
|
||||
$field = new LiteralField($columnField, '<span class="non-sortable">' . $title . '</span>');
|
||||
$field->addExtraClass("col-".preg_replace('/[^\w]/', '-', $columnField));
|
||||
}
|
||||
$forTemplate->Fields->push($field);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<tr class="sortable-header">
|
||||
<% control Fields %>
|
||||
<th class="main $extraClass"><span>$Field</span></th>
|
||||
<th class="main col-$getName"><span>$Field</span></th>
|
||||
<% end_control %>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user