fix filtering of songs
authorSuperBFG7 <daniel@despite.ch>
Sat, 12 May 2018 07:53:33 +0000 (09:53 +0200)
committerSuperBFG7 <daniel@despite.ch>
Sat, 12 May 2018 07:53:33 +0000 (09:53 +0200)
htdocs/js/mpd.js

index 24e9e48..23dc165 100644 (file)
@@ -1243,7 +1243,7 @@ function set_filter (c) {
                $.each($('#salamisandwich > tbody > tr'), function(i, line) {
                        var first = basename($(line).attr('uri'))[0];
                        if ( $(line).hasClass('song') ) {
-                               first = $(line).children().eq(1).text()[0];
+                               first = $(line).children().eq(3).text()[0];
                        }
 
                        if (filter === "num") {