mirror of https://github.com/SuperBFG7/ympd
removed two obsolete lines
This commit is contained in:
parent
efa4d4443f
commit
bd95651d61
|
@ -80,11 +80,9 @@ var app = $.sammy(function() {
|
||||||
if (browsepath) {
|
if (browsepath) {
|
||||||
$('#filter').append('<button id="add-all-songs" class="btn btn-primary pull-right">Add all</button>');
|
$('#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…
Reference in New Issue