diff --git a/webclient/css/webclient.css b/webclient/css/webclient.css index 2a2c9a0..09a2367 100755 --- a/webclient/css/webclient.css +++ b/webclient/css/webclient.css @@ -103,7 +103,7 @@ } #playlistspane, .scroll { overflow-y: auto; - overflow-x: auto; + overflow-x: hidden; width: 100%; heigth: 100%; } @@ -116,7 +116,7 @@ } #playlistspane, .scroll { overflow-y: auto; - overflow-x: auto; + overflow-x: hidden; width: 100%; heigth: 100%; } @@ -131,7 +131,7 @@ #controldiv { height: 40px; - width: 245px; + width: 240px; margin-top: -3px; margin-left: -5px; display: inline; @@ -166,16 +166,15 @@ #infoname { overflow: hidden; font: bold; - color: #ddd; + color: #555; font-size: 14px; - text-shadow: 1px 1px #555; +/* text-shadow: 1px 1px #fff; */ } #songinfo { margin-top: 5px; height: 40px; padding: 5px; - background-color: #bbb; -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; -webkit-border-top-left-radius: 2px; @@ -186,9 +185,7 @@ #infoartist { overflow: hidden; - color: #aaa; font-size: 11px; - text-shadow: 1px 1px #333; margin: 2px; } @@ -197,7 +194,7 @@ } #infoartist a { - color: #eee; + color: #777; } #infocover { @@ -259,8 +256,8 @@ display: none; } -#currentpane, #searchpane, #albumspane, #artistspane { - display: none; +#currentpane, #searchpane, #albumspane, #artistspane, #radiopane { + display: none; } #playlistspane { @@ -296,26 +293,6 @@ list-style-type:none; } -/* -.table li:first-child { - -moz-border-radius-topleft: 7px; - -moz-border-radius-topright: 7px; - -webkit-border-top-left-radius: 7px; - -webkit-border-top-right-radius: 7px; - border-top-right-radius: 7px; - border-top-left-radius: 7px; -} - -.table li:last-child { - -moz-border-radius-bottomleft: 7px; - -moz-border-radius-bottomright: 7px; - -webkit-border-bottom-left-radius: 7px; - -webkit-border-bottom-right-radius: 7px; - border-bottom-left-radius: 7px; - border-bottom-right-radius: 7px; - border-bottom: 1px solid #999; -} -*/ .table li:first-child { -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; @@ -406,8 +383,8 @@ font-style: oblique; } -#controlsmodal, #artistpopup, #coverpopup { - max-width: 500px; +#controlspopup, #artistpopup, #coverpopup { + max-width: 460px; min-width: 300px; background: white; padding: 5px; diff --git a/webclient/index.html b/webclient/index.html index 1ea745b..0166a46 100755 --- a/webclient/index.html +++ b/webclient/index.html @@ -55,16 +55,16 @@ Close

- +
Close

bbb

- +
-
+
Close

@@ -79,7 +79,7 @@

- +
@@ -147,11 +147,11 @@ Previous Track Play Next Track - More controls + More controls
- +
diff --git a/webclient/js/controls.js b/webclient/js/controls.js index 334ef59..cf85a5c 100755 --- a/webclient/js/controls.js +++ b/webclient/js/controls.js @@ -8,7 +8,7 @@ function playTrack(addtoqueue) { mopidy.tracklist.clear(); } $('#popupTracks').popup('close'); - $('#controlsmodal').popup('close'); + $('#controlspopup').popup('close'); toast('Loading...'); playlisturi = $('#popupTracks').data("list"); @@ -31,7 +31,6 @@ function playTrack(addtoqueue) { break; } } - console.log(selected, playing, tracks); //switch popup options switch (addtoqueue) { diff --git a/webclient/js/functionsvars.js b/webclient/js/functionsvars.js index fd1df1f..41f8421 100755 --- a/webclient/js/functionsvars.js +++ b/webclient/js/functionsvars.js @@ -155,17 +155,24 @@ function resultsToTables(results, target, uri) { $(target).attr('data', uri); var length = 0 || results.length; for ( i = 0; i < length; i++) { - newalbum.push(results[i]); - nexturi = ''; + newalbum.push(results[i]); + nexturi = ''; if (i < length - 1) { nexturi = results[i + 1].album.uri; } - if (results[i].album.uri != nexturi) { + if (!results[i].album) { + if (results[i].uri) { + var name = results[i].name || results[i].uri; + html += '
  • ' + name + ' [Stream]

  • '; + newalbum = []; + nexturi = ''; + } + } else { + if (results[i].album.uri != nexturi) { tableid = 'art' + i; //render differently if only one track in the album if ( newalbum.length == 1 ) { if (i != 0) { html += '
  •  
  • '; } -// html += '
  • '; html += '
  • '; html += '

    ' + newalbum[0].name + "

    "; html += '

    '; @@ -208,6 +215,7 @@ function resultsToTables(results, target, uri) { // customTracklists[results[i].album.uri] = newalbum; newalbum = []; } + } } } tableid = "#" + tableid; diff --git a/webclient/js/gui.js b/webclient/js/gui.js index 4e93c87..d31403f 100755 --- a/webclient/js/gui.js +++ b/webclient/js/gui.js @@ -38,7 +38,7 @@ function resizeMb() { center : true, multiline : false }); - $("#infoartist").html('' + $("#infoartist").html() + ''); + $("#infoartist").html('' + $("#infoartist").html() + ''); //initialize iScroll if MobileWebkit and large window if (isMobileWebkit) { @@ -187,8 +187,12 @@ function setSongInfo(data) { /*************** * display popups */ -function coverPopup() { - +function closePopups() { + $('#popupTracks').popup('close'); + $('#artistpopup').popup('close'); + $('#coverpopup').popup('close'); + $('#popupQueue').popup('close'); + $('#controlspopup').popup('close'); } function popupTracks(e, listuri, trackuri) {