mirror of
https://github.com/SuperBFG7/ympd
synced 2025-01-03 06:10:25 +00:00
Fixed invisible "Add all" button in browse page
This commit is contained in:
parent
df5a48f99f
commit
efa4d4443f
@ -118,7 +118,6 @@
|
||||
</ol>
|
||||
|
||||
<div class="col-md-12" id="filter">
|
||||
<button id="add-all-songs" class="btn btn-primary pull-right">Add all</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -78,6 +78,7 @@ var app = $.sammy(function() {
|
||||
socket.send('MPD_API_GET_BROWSE,'+pagination+','+(browsepath ? browsepath : "/"));
|
||||
// Don't add all songs from root
|
||||
if (browsepath) {
|
||||
$('#filter').append('<button id="add-all-songs" class="btn btn-primary pull-right">Add all</button>');
|
||||
var add_all_songs = $('#add-all-songs');
|
||||
add_all_songs.off(); // remove previous binds
|
||||
add_all_songs.on('click', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user