From: SuperBFG7 Date: Thu, 22 Oct 2015 09:44:50 +0000 (+0200) Subject: remember last folder in browser X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=f06885fab72b1e82dd20dcc29cca67a86a1586a5;p=ympd.git remember last folder in browser --- diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 51e8fdc..a69d97e 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -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")));