Skip to content

Commit

Permalink
Update stop for Mopidy playback API v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kingosticks committed Mar 26, 2015
1 parent b7c81f7 commit 523f515
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mopidy_musicbox_webclient/static/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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...');

Expand Down Expand Up @@ -280,7 +280,7 @@ function clearQueue() {
*/

function doShuffle() {
mopidy.playback.stop(true);
mopidy.playback.stop();
mopidy.tracklist.shuffle();
mopidy.playback.play();
}
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 523f515

Please sign in to comment.