Browse files

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
  • Loading branch information...
1 parent 54905b0 commit 6671ae7ee95626150c1a72ae2fb58b95c88d433a @normann normann committed Apr 10, 2012
View
1 forms/gridfield/GridFieldSortableHeader.php
@@ -85,7 +85,6 @@ public function getHTMLFragments($gridField) {
}
} else {
$field = new LiteralField($columnField, '<span class="non-sortable">' . $title . '</span>');
- $field->addExtraClass("col-".preg_replace('/[^\w]/', '-', $columnField));
}
$forTemplate->Fields->push($field);
}
View
2 templates/Includes/GridFieldSortableHeader_Row.ss
@@ -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>

0 comments on commit 6671ae7

Please sign in to comment.