1.9.9 - Drag and drop sorting

This commit is contained in:
Trevor Squillario 2012-05-22 11:14:42 -04:00
parent e94854faff
commit bab5923c64
6 changed files with 51 additions and 14 deletions

View file

@ -58,8 +58,8 @@ function generateSongHTML(rowcolor, childid, parentid, track, title, artist, alb
return html;
}
function refreshRowColor() {
$.each($('table.songlist tr.song'), function (i) {
function refreshRowColor(el) {
$.each($(el + ' tr.song'), function (i) {
$(this).removeClass('even odd');
var rowcolor;
if (i % 2 === 0) {