Redeclaration of var header
This commit is contained in:
parent
2272af224c
commit
4ab565dc93
1 changed files with 3 additions and 2 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue