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) {
if (index.name === '#') {
indexname = '0-9';
} else {
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>';
indexname = index.name;
$('<li class=\"index\" id=\"index_' + indexname + '\" title=\"Scroll to Top\"><a name=\"index_' + indexname + '\">' + indexname + '</a><span class=\"floatright\">&uarr;</span></li>').appendTo("#ArtistContainer");
indexlist += '<li><a href=\"#' + indexname + '\">' + indexname + '</a></li>';
var artists = [];
if (index.artist.length > 0) {
artists = index.artist;

View file

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