diff options
author | spocky <spocky@ampache> | 2008-03-17 22:00:00 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2008-03-17 22:00:00 +0000 |
commit | 179b7dab439f4993b6de0f95ef130b1dbf4d4acf (patch) | |
tree | 37e031e673cbd17f30113e9e3f6d325aa786e31a /lib/class/browse.class.php | |
parent | 7ddc95541d649fdf0121eafcd71a93376b16efec (diff) | |
download | ampache-179b7dab439f4993b6de0f95ef130b1dbf4d4acf.tar.gz ampache-179b7dab439f4993b6de0f95ef130b1dbf4d4acf.tar.bz2 ampache-179b7dab439f4993b6de0f95ef130b1dbf4d4acf.zip |
Changed "starts with" browsing execution from OnChange to OnKeyUp (sounds more logical this way). Maybe we dont need "alphabet filter" above anymore. Or maybe we do (?).
Fixed songs starting with "All" never searched
Diffstat (limited to 'lib/class/browse.class.php')
-rw-r--r-- | lib/class/browse.class.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php index 98dabce6..c5fff159 100644 --- a/lib/class/browse.class.php +++ b/lib/class/browse.class.php @@ -59,24 +59,23 @@ class Browse { * a single point for whitelist tweaks etc */ public static function set_filter($key,$value) { - switch ($key) { - case 'show_art': + case 'show_art': if ($_SESSION['browse']['filter'][$key]) { unset($_SESSION['browse']['filter'][$key]); } else { - $_SESSION['browse']['filter'][$key] = 1; + $_SESSION['browse']['filter'][$key] = 1; } - break; - case 'min_count': - case 'unplayed': - case 'rated': + break; + case 'min_count': + case 'unplayed': + case 'rated': break; case 'alpha_match': - if (self::$static_content) { return false; } - if ($value == _('All')) { $value = ''; } + if (self::$static_content) { return false; } + //if ($value == _('All')) { $value = ''; } $_SESSION['browse']['filter'][$key] = $value; break; case 'playlist_type': |