2.0.6 Minor bug fix

This commit is contained in:
Trevor Squillario 2012-08-13 09:42:45 -04:00
parent e16f840e56
commit 58df26fb27
2 changed files with 7 additions and 10 deletions

View file

@ -74,9 +74,8 @@ function loadArtists(id, refresh) {
$.each(indexes, function (i, child) { $.each(indexes, function (i, child) {
var html = generateRowHTML(child, appendto); var html = generateRowHTML(child, appendto);
$(html).appendTo(appendto); $(html).appendTo(appendto);
header = generateSongHeaderHTML();
$('#songactions').show();
}); });
header = generateSongHeaderHTML();
} }
} else { } else {
var error = data["subsonic-response"].status; var error = data["subsonic-response"].status;
@ -145,25 +144,24 @@ function getAlbums(id, action, appendto) {
children[0] = data["subsonic-response"].directory.child; children[0] = data["subsonic-response"].directory.child;
} }
var isDir; var isDir = false;
var header; var header;
$.each(children, function (i, child) { $.each(children, function (i, child) {
if (child.isDir === true) { isDir = true; } if (child.isDir == true) { isDir = true; }
var html = generateRowHTML(child, appendto); var html = generateRowHTML(child, appendto);
$(html).appendTo(appendto); $(html).appendTo(appendto);
}); });
if (appendto === '#CurrentPlaylistContainer') { if (appendto == '#CurrentPlaylistContainer') {
updateMessage(children.length + ' Song(s) Added'); updateMessage(children.length + ' Song(s) Added');
} }
if (appendto === '#AlbumRows' && isDir === true) { if (appendto == '#AlbumRows' && isDir == true) {
header = generateAlbumHeaderHTML(); header = generateAlbumHeaderHTML();
} }
if (appendto === '#AlbumRows' && isDir === false) { if (appendto == '#AlbumRows' && isDir == false) {
header = generateSongHeaderHTML(); header = generateSongHeaderHTML();
$('#songactions').show();
} }
$("#AlbumHeader").html(header); $("#AlbumHeader").html(header);
if (action === 'autoplay') { if (action == 'autoplay') {
autoPlay(); autoPlay();
} }
} }

View file

@ -674,7 +674,6 @@ background-color: #8dbdd8;
} }
#songactions #songactions
{ {
display: none;
float: left; float: left;
} }
.submenu .submenu