1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-16 18:19:56 +00:00

merge branch browse

This commit is contained in:
SuperBFG7 2015-10-22 11:45:55 +02:00
commit a8bcba7fe7

View File

@ -353,7 +353,10 @@ function webSocketConnect() {
click: function() { click: function() {
switch($(this).attr('class')) { switch($(this).attr('class')) {
case 'dir': case 'dir':
app.setLocation("#/browse/0/"+$(this).attr("uri")); pagination = 0;
browsepath = $(this).attr("uri");
$("#browse > a").attr("href", '#/browse/'+pagination+'/'+browsepath);
app.setLocation('#/browse/'+pagination+'/'+browsepath);
break; break;
case 'song': case 'song':
socket.send("MPD_API_ADD_TRACK," + decodeURI($(this).attr("uri"))); socket.send("MPD_API_ADD_TRACK," + decodeURI($(this).attr("uri")));