1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-23 01:20:27 +00:00

Merge pull request #102 from SuperBFG7/browse

remember last folder in browser
This commit is contained in:
Andy 2016-02-13 21:49:18 +01:00
commit 126f247a08

View File

@ -349,7 +349,10 @@ function webSocketConnect() {
click: function() {
switch($(this).attr('class')) {
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;
case 'song':
socket.send("MPD_API_ADD_TRACK," + decodeURI($(this).attr("uri")));