mirror of
https://github.com/SuperBFG7/ympd
synced 2025-01-03 14:10:26 +00:00
remember last folder in browser
This commit is contained in:
parent
4295d15874
commit
f06885fab7
@ -329,7 +329,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")));
|
||||||
|
Loading…
Reference in New Issue
Block a user