mirror of
https://github.com/SuperBFG7/ympd
synced 2025-02-16 11:00:10 +00:00
Merge branch 'dafanz-master'
This commit is contained in:
commit
5e6d090bd8
@ -118,7 +118,6 @@
|
|||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div class="col-md-12" id="filter">
|
<div class="col-md-12" id="filter">
|
||||||
<button id="add-all-songs" class="btn btn-primary pull-right">Add all</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,12 +78,11 @@ var app = $.sammy(function() {
|
|||||||
socket.send('MPD_API_GET_BROWSE,'+pagination+','+(browsepath ? browsepath : "/"));
|
socket.send('MPD_API_GET_BROWSE,'+pagination+','+(browsepath ? browsepath : "/"));
|
||||||
// Don't add all songs from root
|
// Don't add all songs from root
|
||||||
if (browsepath) {
|
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');
|
var add_all_songs = $('#add-all-songs');
|
||||||
add_all_songs.off(); // remove previous binds
|
|
||||||
add_all_songs.on('click', function() {
|
add_all_songs.on('click', function() {
|
||||||
socket.send('MPD_API_ADD_TRACK,'+browsepath);
|
socket.send('MPD_API_ADD_TRACK,'+browsepath);
|
||||||
});
|
});
|
||||||
add_all_songs.show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#panel-heading').text("Browse database: "+browsepath);
|
$('#panel-heading').text("Browse database: "+browsepath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user