Typo error prevend webradio playlists to show.
authorEmilot <info@collybia.com>
Wed, 9 May 2018 23:43:57 +0000 (02:43 +0300)
committerGitHub <noreply@github.com>
Wed, 9 May 2018 23:43:57 +0000 (02:43 +0300)
htdocs/js/mpd.js

index ce2fd8e..7fb1073 100644 (file)
@@ -316,11 +316,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(
@@ -333,7 +333,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 + "\">" +