Fixed album selection stuff

This commit is contained in:
gballan1 2016-11-28 20:38:46 -05:00
parent bb7d66250b
commit 575cd6211e

View File

@ -16,19 +16,6 @@ $(document).ready(function() {
}); });
}); });
function changeSelectedAlbum(albumElem) {
var oldSelected = $('.music-album.selected');
var newSelected = $(albumElem).parent();
if (oldSelected.data('albumid') != newSelected.data('albumid')) {
// remove selected class from the old element and add it to the new one
oldSelected.removeClass('selected');
newSelected.addClass('selected');
// change available songs
}
}
function changeSelectedAlbum(albumElem) { function changeSelectedAlbum(albumElem) {
var oldSelected = $('.music-album.selected').parent(); var oldSelected = $('.music-album.selected').parent();
var newSelected = $(albumElem).parent(); var newSelected = $(albumElem).parent();