Redeclaration of var header

This commit is contained in:
Ellis Berner 2012-03-03 14:30:01 -08:00
parent 2272af224c
commit 4ab565dc93

View file

@ -119,6 +119,7 @@ function getAlbums(id, action, appendto) {
var rowcolor; var rowcolor;
var albumhtml; var albumhtml;
var isDir; var isDir;
var header;
$.each(children, function (i, child) { $.each(children, function (i, child) {
if (i % 2 === 0) { if (i % 2 === 0) {
rowcolor = 'even'; rowcolor = 'even';
@ -137,10 +138,10 @@ function getAlbums(id, action, appendto) {
$(albumhtml).appendTo(appendto); $(albumhtml).appendTo(appendto);
}); });
if (appendto === '#AlbumRows' && isDir === true) { if (appendto === '#AlbumRows' && isDir === true) {
var header = generateAlbumHeaderHTML(); header = generateAlbumHeaderHTML();
} }
if (appendto === '#AlbumRows' && isDir === false) { if (appendto === '#AlbumRows' && isDir === false) {
var header = generateSongHeaderHTML(); header = generateSongHeaderHTML();
} }
$("#AlbumHeader").html(header); $("#AlbumHeader").html(header);
if (action === 'autoplay') { if (action === 'autoplay') {