1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-22 04:43:15 +00:00

Merge pull request #25 from SuperBFG7/filter

make A-Z filters work also on songs and playlists
This commit is contained in:
Daniel Schregenberger 2018-05-11 21:12:39 +02:00 committed by GitHub
commit 9bf518ed07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1240,9 +1240,11 @@ function set_filter (c) {
$('#salamisandwich > tbody > tr.song').addClass('hide');
$('#salamisandwich > tbody > tr.plist').removeClass('hide');
} else {
$('#salamisandwich > tbody > tr.plist').addClass('hide');
$.each($('#salamisandwich > tbody > tr.dir'), function(i, line) {
$.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];
}
if (filter === "num") {
if (!isNaN(first)) {