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 | |
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')
-rw-r--r-- | lib/class/browse.class.php | 17 | ||||
-rw-r--r-- | lib/ui.lib.php | 3 |
2 files changed, 10 insertions, 10 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': diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 9e7e5cb1..45ddd521 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -147,7 +147,8 @@ function show_alphabet_list () { $style_name = "style_" . strtolower($l); $class = "link"; if ($l==$selected) $class .=" active"; - echo "<span class=\"" . $class . "\" onclick=\"ajaxPut('". Config::get('ajax_url') ."?page=browse&action=browse&key=alpha_match&value=$l');return true;\">" . + $value = ($l==_('All'))?'':$l; + echo "<span class=\"" . $class . "\" onclick=\"ajaxPut('". Config::get('ajax_url') ."?page=browse&action=browse&key=alpha_match&value=$value');return true;\">" . $l . "</span>\n"; } echo "</div>"; |