diff --git a/webclient/index.html b/webclient/index.html index cd93742..a28437e 100755 --- a/webclient/index.html +++ b/webclient/index.html @@ -1,7 +1,7 @@ - + @@ -77,10 +77,13 @@ Track -->
  • - Play Track + Play
  • -
  • - Add tracks to bottom of queue +
  • + Add this track to bottom of queue +
  • +
  • + Add all tracks to bottom of queue
  • Show Album @@ -134,7 +137,7 @@
    -

    Play Queue

    + Clear

    Play Queue

    diff --git a/webclient/js/controls.js b/webclient/js/controls.js index 44f2cd3..e367903 100755 --- a/webclient/js/controls.js +++ b/webclient/js/controls.js @@ -19,7 +19,7 @@ function playTrack(addtobottom) { var tracks = getTracksFromUri(playlisturi); if (tracks) { if (!addtobottom) { - mopidy.tracklist.clear(); + clearQueue(); } $(CURRENT_PLAYLIST_TABLE).empty(); } else { @@ -39,6 +39,9 @@ function playTrack(addtobottom) { } if (addtobottom) { + if (addtobottom == 'one') { + tracks.length = 1; + } mopidy.tracklist.add(tracks); showLoading(false); return false; @@ -65,6 +68,11 @@ console.log(i); return false; } +function clearQueue () { + mopidy.tracklist.clear(); + return false; +} + /********************** * Buttons */