Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR SSF-53 : add hover-alike class to "Reset" button for easy css s…

…tyling while keydown on filter input field
  • Loading branch information...
commit 8284fcc75b86c142bb61170fc94562b668793f4f 1 parent 6f71186
@normann normann authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 javascript/GridField.js
View
8 javascript/GridField.js
@@ -153,14 +153,16 @@
*/
$('.ss-gridfield .filter-header :input').entwine({
onkeydown: function(e) {
- btn = this.closest('.fieldgroup').find('.ss-gridfield-button-filter');
+ filterbtn = this.closest('.fieldgroup').find('.ss-gridfield-button-filter');
+ resetbtn = this.closest('.fieldgroup').find('.ss-gridfield-button-reset');
if(e.keyCode == '13') {
btns = this.closest('.filter-header').find('.ss-gridfield-button-filter');
this.getGridField().reload({data: [{name: btns.attr('name'), value: btns.val()}]});
- btn.removeClass('hover-alike');
+ filterbtn.removeClass('hover-alike');
return false;
}else{
- btn.addClass('hover-alike');
+ filterbtn.addClass('hover-alike');
+ resetbtn.addClass('hover-alike');
}
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.