Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR: Add asc and desc classes to sorted header

  • Loading branch information...
commit 98f047ebfac2aa06444d7d03dd4bc62006e0a48a 1 parent be114b4
@ajoneil ajoneil authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 forms/gridfield/GridFieldSortableHeader.php
View
5 forms/gridfield/GridFieldSortableHeader.php
@@ -33,6 +33,11 @@ public function getHTMLFragments($gridField) {
$field->addExtraClass('ss-gridfield-sort');
if($state->SortColumn == $columnField){
$field->addExtraClass('ss-gridfield-sorted');
+
+ if($state->SortDirection == 'asc')
+ $field->addExtraClass('ss-gridfield-sorted-asc');
+ else
+ $field->addExtraClass('ss-gridfield-sorted-desc');
}
} else {
$field = new LiteralField($columnField, $title);
Please sign in to comment.
Something went wrong with that request. Please try again.