mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	make A-Z filters work also on songs and playlists
This commit is contained in:
		| @@ -1083,9 +1083,11 @@ function set_filter (c) { | |||||||
|     	$('#salamisandwich > tbody > tr.song').addClass('hide'); |     	$('#salamisandwich > tbody > tr.song').addClass('hide'); | ||||||
|     	$('#salamisandwich > tbody > tr.plist').removeClass('hide'); |     	$('#salamisandwich > tbody > tr.plist').removeClass('hide'); | ||||||
|     } else { |     } else { | ||||||
|     	$('#salamisandwich > tbody > tr.plist').addClass('hide'); | 		$.each($('#salamisandwich > tbody > tr'), function(i, line) { | ||||||
| 		$.each($('#salamisandwich > tbody > tr.dir'), function(i, line) { |  | ||||||
| 			var first = basename($(line).attr('uri'))[0]; | 			var first = basename($(line).attr('uri'))[0]; | ||||||
|  | 			if ( $(line).hasClass('song') ) { | ||||||
|  | 				first = $(line).children().eq(1).text()[0]; | ||||||
|  | 			} | ||||||
|  |  | ||||||
| 			if (filter === "num") { | 			if (filter === "num") { | ||||||
| 				if (!isNaN(first)) { | 				if (!isNaN(first)) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SuperBFG7
					SuperBFG7