From 523f5154a2f4c054a9b91faa82aa972a325d0c14 Mon Sep 17 00:00:00 2001 From: kingosticks Date: Thu, 26 Mar 2015 00:02:39 +0000 Subject: [PATCH] Update stop for Mopidy playback API v1.0 --- mopidy_musicbox_webclient/static/js/controls.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mopidy_musicbox_webclient/static/js/controls.js b/mopidy_musicbox_webclient/static/js/controls.js index 7cf92442..a1f0504a 100644 --- a/mopidy_musicbox_webclient/static/js/controls.js +++ b/mopidy_musicbox_webclient/static/js/controls.js @@ -5,7 +5,7 @@ function playBrowsedTracks(addtoqueue, trackid) { //stop directly, for user feedback. if (addtoqueue == PLAY_ALL) { - mopidy.playback.stop(true); + mopidy.playback.stop(); mopidy.tracklist.clear(); } toast('Loading...'); @@ -97,7 +97,7 @@ function playTrack(addtoqueue) { //stop directly, for user feedback. If searchresults, also clear queue if (!addtoqueue || ((addtoqueue == PLAY_NOW) && (divid == 'search'))) { - mopidy.playback.stop(true); + mopidy.playback.stop(); mopidy.tracklist.clear(); } $('#popupTracks').popup('close'); @@ -179,7 +179,7 @@ function playTrackByUri(track_uri, playlist_uri) { } // Stop directly, for user feedback - mopidy.playback.stop(true); + mopidy.playback.stop(); mopidy.tracklist.clear(); //this is deprecated, remove when popuptracks is removed completly @@ -217,7 +217,7 @@ function playTrackByUri(track_uri, playlist_uri) { function playTrackQueueByUri(uri, playlisturi) { // console.log('playquuri'); //stop directly, for user feedback - mopidy.playback.stop(true); + mopidy.playback.stop(); $('#popupQueue').popup('close'); toast('Loading...'); @@ -280,7 +280,7 @@ function clearQueue() { */ function doShuffle() { - mopidy.playback.stop(true); + mopidy.playback.stop(); mopidy.tracklist.shuffle(); mopidy.playback.play(); } @@ -518,7 +518,7 @@ function playStreamUri(uri) { if (isServiceUri(nwuri) || isStreamUri(nwuri) || validUri(nwuri)) { toast('Playing...'); //stop directly, for user feedback - mopidy.playback.stop(true); + mopidy.playback.stop(); //hide ios/android keyboard document.activeElement.blur(); $("input").blur();