From 179b7dab439f4993b6de0f95ef130b1dbf4d4acf Mon Sep 17 00:00:00 2001 From: spocky Date: Mon, 17 Mar 2008 22:00:00 +0000 Subject: 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 --- lib/class/browse.class.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lib/class/browse.class.php') 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': -- cgit