typo fix as per emilot commit
authorArchphile <archphile@users.noreply.github.com>
Thu, 10 May 2018 07:22:44 +0000 (10:22 +0300)
committerGitHub <noreply@github.com>
Thu, 10 May 2018 07:22:44 +0000 (10:22 +0300)
Please see: https://github.com/notandy/ympd/pull/175

htdocs/js/mpd.js

index 028ad84..4a8ba8b 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 + "\">" +