Skip to content

Commit

Permalink
User correct track insert position when invoking 'PLAY_NEXT' from dia…
Browse files Browse the repository at this point in the history
…log.
  • Loading branch information
jcass77 committed Jan 7, 2017
1 parent f777933 commit 24416ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mopidy_musicbox_webclient/static/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
var pos = index
if (pos === null) {
pos = 0
} else if (action !== INSERT_AT_INDEX) {
} else {
pos += 1
}

Expand Down
2 changes: 1 addition & 1 deletion tests/js/test_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ describe('controls', function () {
})

mopidy.tracklist.get_tl_tracks().then( function (tlTracks) {
assert.equal(tlTracks[1].track.uri, insertUri)
assert.equal(tlTracks[2].track.uri, insertUri)
})
})
})
Expand Down

0 comments on commit 24416ee

Please sign in to comment.