Fix which reset the classes of .odd, .even, .first and .last when a draggable and drop event occurs, which ensures zebra striping remains correct

This commit is contained in:
Aden Fraser 2015-02-11 12:29:26 +00:00
parent 9d60a58343
commit 68723005c8
1 changed files with 6 additions and 0 deletions

View File

@ -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();