2.0 - Bug fixes

This commit is contained in:
Trevor Squillario 2012-05-22 11:47:48 -04:00
parent eabb7f5a15
commit 5fab973600
2 changed files with 7 additions and 11 deletions

View file

@ -39,13 +39,9 @@ function loadArtists(id, refresh) {
} }
$.each(indexes, function (i, index) { $.each(indexes, function (i, index) {
if (index.name === '#') { indexname = index.name;
indexname = '0-9'; $('<li class=\"index\" id=\"index_' + indexname + '\" title=\"Scroll to Top\"><a name=\"index_' + indexname + '\">' + indexname + '</a><span class=\"floatright\">&uarr;</span></li>').appendTo("#ArtistContainer");
} else { indexlist += '<li><a href=\"#' + indexname + '\">' + indexname + '</a></li>';
indexname = index.name;
}
$('<li class=\"index\" id=\"index_' + indexname + '\" title=\"Scroll to Top\">' + indexname + '<span class=\"floatright\">&uarr;</span></li>').appendTo("#ArtistContainer");
indexlist += '<li><a href=\"#\">' + indexname + '</a></li>';
var artists = []; var artists = [];
if (index.artist.length > 0) { if (index.artist.length > 0) {
artists = index.artist; artists = index.artist;

View file

@ -120,7 +120,7 @@
getAlbums($(this).attr("id"), '', '#AlbumRows'); getAlbums($(this).attr("id"), '', '#AlbumRows');
}); });
$('#BottomIndex li a').live('click', function () { $('#BottomIndex li a').live('click', function () {
var el = '#index_' + $(this).text(); var el = 'a[name = "index_' + $(this).text() + '"]';
$('#Artists').stop().scrollTo(el, 400); $('#Artists').stop().scrollTo(el, 400);
return false; return false;
}); });
@ -602,7 +602,7 @@
}; };
$("#CurrentPlaylistContainer tbody").sortable({ $("#CurrentPlaylistContainer tbody").sortable({
helper: fixHelper, helper: fixHelper,
stop: function() { stop: function () {
refreshRowColor('#CurrentPlaylistContainer tbody'); refreshRowColor('#CurrentPlaylistContainer tbody');
} }
}).disableSelection(); }).disableSelection();
@ -613,4 +613,4 @@
} }
}).disableSelection(); }).disableSelection();
}); // End document.ready }); // End document.ready