Revert "Typo error prevend webradio playlists to show."
authorDaniel Schregenberger <daniel@despite.ch>
Fri, 11 May 2018 13:34:38 +0000 (15:34 +0200)
committerGitHub <noreply@github.com>
Fri, 11 May 2018 13:34:38 +0000 (15:34 +0200)
htdocs/js/mpd.js

index 8c74fcf..14cc505 100644 (file)
@@ -405,11 +405,11 @@ function webSocketConnect() {
                                 if (filter !== undefined) {
                                     var first = obj.data[item].dir[0];
                                     if (filter === "#" && isNaN(first)) {
-                                        clazz += 'hide';
+                                        clazz += ' hide';
                                     } else if (filter >= "A" && filter <= "Z" && first.toUpperCase() !== filter) {
-                                        clazz += 'hide';
+                                        clazz += ' hide';
                                     } else if (filter === "||") {
-                                        clazz += 'hide';
+                                        clazz += ' hide';
                                     }
                                 }
                                 $('#salamisandwich > tbody').append(
@@ -422,7 +422,7 @@ function webSocketConnect() {
                             case 'playlist':
                                 var clazz = 'plist';
                                 if (filter !== "||") {
-                                    clazz += 'hide';
+                                    clazz += ' hide';
                                 }
                                 $('#salamisandwich > tbody').append(
                                     "<tr uri=\"" + encodeURI(obj.data[item].plist) + "\" class=\"" + clazz + "\">" +