Skip to content

Commit

Permalink
BUGFIX: GridField filter
Browse files Browse the repository at this point in the history
Make sure the new class is used consistently, and has the correct css
applied to it.
  • Loading branch information
adrexia committed May 16, 2012
1 parent eeef41e commit f0c61c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions css/GridField.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion forms/gridfield/GridFieldSortableHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getHTMLFragments($gridField) {
}
} else {
if($currentColumn == count($columns) && $gridField->getConfig()->getComponentByType('GridFieldFilterHeader')){
$field = new LiteralField($columnField, '<button name="showFilter" class="ss-gridfield-button-filter" id="showFilter"></button>');
$field = new LiteralField($columnField, '<button name="showFilter" class="ss-gridfield-button-filter trigger"></button>');
}else{
$field = new LiteralField($columnField, '<span class="non-sortable">' . $title . '</span>');
}
Expand Down
2 changes: 1 addition & 1 deletion javascript/GridField.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
content = '<span class="non-sortable"></span>';
self.addClass('show-filter').find('.filter-header').show();
}else{
content = '<button name="showFilter" class="ss-gridfield-button-filter"></button>';
content = '<button name="showFilter" class="ss-gridfield-button-filter trigger"></button>';
self.removeClass('show-filter').find('.filter-header').hide();
}

Expand Down
2 changes: 1 addition & 1 deletion scss/GridField.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ $gf_grid_x: 16px;
));
}

&#showFilter{ //The magnifying glass before filter is opened
&.trigger{ //The magnifying glass before filter is opened
margin-left: $gf_grid_y;
border:none;
@include background ($bgImage -17px 6px);
Expand Down

0 comments on commit f0c61c2

Please sign in to comment.