1. Fix typo in functionsvars.js
2. Close popup menu after actions in browse pane
This commit is contained in:
wagamama 2015-03-22 12:04:07 +08:00
parent 2440146b42
commit 647a9d9c5f
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ function playBrowsedTracks(addtoqueue, trackid) {
mopidy.playback.stop(true);
mopidy.tracklist.clear();
}
$('#popupBrowse').popup('close');
$('#controlspopup').popup('close');
toast('Loading...');
trackid = typeof trackid !== 'undefined' ? trackid : $('#popupBrowse').data("track");

View File

@ -289,7 +289,7 @@ function resultsToTables(results, target, uri) {
html += '<li class="smalldivider"> &nbsp;</li>';
}
iconClass = getMediaClass(newalbum[0].uri);
var liID = targetmin + '-' + newalbum[j].uri;
var liID = targetmin + '-' + newalbum[0].uri;
if (target == CURRENT_PLAYLIST_TABLE) {
html += '<li class="song albumli" id="' + liID + '" tlid="' + newtlids[0] + '">' +
'<a href="#" class="moreBtn" onclick="return popupTracks(event, \'' + uri + '\',\'' + newalbum[0].uri + '\',\'' + newtlids[0] + '\');">' +