remember last folder in browser

This commit is contained in:
SuperBFG7 2015-10-22 11:44:50 +02:00
parent 4295d15874
commit f06885fab7
1 changed files with 4 additions and 1 deletions

View File

@ -329,7 +329,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")));