mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed issue where the even/odd highlight would differ from what the server would generate after sorting
This commit is contained in:
parent
ddf5160891
commit
282ea74a76
@ -30,15 +30,16 @@
|
||||
pageSort=false;
|
||||
return;
|
||||
}
|
||||
|
||||
$('.ss-gridfield-item').removeClass('first last odd even');
|
||||
$('.ss-gridfield-item').first().addClass('first');
|
||||
$('.ss-gridfield-item:odd').last().addClass('last');
|
||||
$('.ss-gridfield-item:even').addClass('even');
|
||||
$('.ss-gridfield-item:odd').addClass('odd');
|
||||
|
||||
var gridItems=gridField.getItems();
|
||||
|
||||
gridItems.removeClass('first last odd even');
|
||||
gridItems.first().addClass('first');
|
||||
gridItems.last().addClass('last');
|
||||
gridItems.filter(':even').addClass('odd');
|
||||
gridItems.filter(':odd').addClass('even');
|
||||
|
||||
var dataRows=[];
|
||||
var gridItems=gridField.getItems();
|
||||
var button=refCheckbox.parent().find('.sortablerows-savesort');
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user