From 58df26fb27d677291b315f5aca2e42c7aed66c64 Mon Sep 17 00:00:00 2001 From: Trevor Squillario Date: Mon, 13 Aug 2012 09:42:45 -0400 Subject: [PATCH] 2.0.6 Minor bug fix --- js/libs/api.js | 16 +++++++--------- style/Style.css | 1 - 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/js/libs/api.js b/js/libs/api.js index 4df1d52..92f1916 100644 --- a/js/libs/api.js +++ b/js/libs/api.js @@ -74,9 +74,8 @@ function loadArtists(id, refresh) { $.each(indexes, function (i, child) { var html = generateRowHTML(child, appendto); $(html).appendTo(appendto); - header = generateSongHeaderHTML(); - $('#songactions').show(); }); + header = generateSongHeaderHTML(); } } else { var error = data["subsonic-response"].status; @@ -145,25 +144,24 @@ function getAlbums(id, action, appendto) { children[0] = data["subsonic-response"].directory.child; } - var isDir; + var isDir = false; var header; $.each(children, function (i, child) { - if (child.isDir === true) { isDir = true; } + if (child.isDir == true) { isDir = true; } var html = generateRowHTML(child, appendto); $(html).appendTo(appendto); }); - if (appendto === '#CurrentPlaylistContainer') { + if (appendto == '#CurrentPlaylistContainer') { updateMessage(children.length + ' Song(s) Added'); } - if (appendto === '#AlbumRows' && isDir === true) { + if (appendto == '#AlbumRows' && isDir == true) { header = generateAlbumHeaderHTML(); } - if (appendto === '#AlbumRows' && isDir === false) { + if (appendto == '#AlbumRows' && isDir == false) { header = generateSongHeaderHTML(); - $('#songactions').show(); } $("#AlbumHeader").html(header); - if (action === 'autoplay') { + if (action == 'autoplay') { autoPlay(); } } diff --git a/style/Style.css b/style/Style.css index a0b6369..0635f55 100644 --- a/style/Style.css +++ b/style/Style.css @@ -674,7 +674,6 @@ background-color: #8dbdd8; } #songactions { - display: none; float: left; } .submenu