Index: Changelog6.html
===================================================================
--- Changelog6.html (revision 8940)
+++ Changelog6.html (working copy)
@@ -476,6 +476,7 @@
#3869 - holding play button (rather than a quick tap) while browsing music folder, doesn't play
#3870 - Nokia770 skin doesn't show tooltip for unknown album artwork
#3874 - fishbone skin does not refresh playlist correctly
+ #3882 - album sort order pulldown not persistent
#3893 - changing sort by pulldown kicks you out to top level
#3898 - 'Now Playing' in web interface shows Artist and Album twice
Index: HTML/EN/html/common.js
===================================================================
--- HTML/EN/html/common.js (revision 8940)
+++ HTML/EN/html/common.js (working copy)
@@ -100,7 +100,7 @@
if (option) {
url = url + '&orderBy=' + option;
}
-
+ setCookie( 'SlimServer-orderBy', option );
window.location = url;
}
Index: Slim/Web/HTTP.pm
===================================================================
--- Slim/Web/HTTP.pm (revision 8940)
+++ Slim/Web/HTTP.pm (working copy)
@@ -701,6 +701,14 @@
$params->{'artwork'} = 1 unless defined $params->{'artwork'};
}
+ # Check for the album order cookie.
+ if ($params->{'cookies'}->{'SlimServer-orderBy'} &&
+ $params->{'cookies'}->{'SlimServer-orderBy'}->value) {
+
+ $params->{'orderBy'} = $params->{'cookies'}->{'SlimServer-orderBy'}->value unless defined $params->{'orderBy'};
+ }
+
+
if (Slim::Web::Graphics::serverResizesArt()) {
$params->{'serverResizesArt'} = 1;
}