projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4295d15
)
remember last folder in browser
author
SuperBFG7
<daniel@despite.ch>
Thu, 22 Oct 2015 09:44:50 +0000
(11:44 +0200)
committer
SuperBFG7
<daniel@despite.ch>
Thu, 22 Oct 2015 09:44:50 +0000
(11:44 +0200)
htdocs/js/mpd.js
patch
|
blob
|
history
diff --git
a/htdocs/js/mpd.js
b/htdocs/js/mpd.js
index
51e8fdc
..
a69d97e
100644
(file)
--- 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")));