mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Merge pull request #67 from AdenFraser/master
Resets the classes of .odd, .even, .first and .last for gridfields when a update (drop) event occurs.
This commit is contained in:
commit
3e9b1b6e2e
@ -30,6 +30,12 @@
|
||||
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 dataRows=[];
|
||||
var gridItems=gridField.getItems();
|
||||
|
Loading…
Reference in New Issue
Block a user