mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: Disabled sort-input focus+button move if only 1 such field exists
This commit is contained in:
parent
284360e987
commit
eb77c4b056
@ -40,8 +40,9 @@ jQuery(function($){
|
||||
*/
|
||||
$('fieldset.ss-gridfield input.ss-gridfield-sort').entwine({
|
||||
onfocusin: function(e) {
|
||||
// Dodgy results in IE <=7
|
||||
if($.browser.msie && $.browser.version <= 7) {
|
||||
// Dodgy results in IE <=7 & ignore if only one filter-field
|
||||
countfields = $('fieldset.ss-gridfield input.ss-gridfield-sort').length;
|
||||
if(($.browser.msie && $.browser.version <= 7) || countfields == 1) {
|
||||
return false;
|
||||
}
|
||||
var eleInput = $(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user