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
@ -31,6 +31,12 @@
|
|||||||
return;
|
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 dataRows=[];
|
||||||
var gridItems=gridField.getItems();
|
var gridItems=gridField.getItems();
|
||||||
var button=refCheckbox.parent().find('.sortablerows-savesort');
|
var button=refCheckbox.parent().find('.sortablerows-savesort');
|
||||||
|
Loading…
Reference in New Issue
Block a user