removed two obsolete lines
authorSuperBFG7 <daniel@despite.ch>
Tue, 9 Mar 2021 12:03:04 +0000 (13:03 +0100)
committerSuperBFG7 <daniel@despite.ch>
Tue, 9 Mar 2021 12:03:04 +0000 (13:03 +0100)
htdocs/js/mpd.js

index 7924061..984c3f8 100644 (file)
@@ -80,11 +80,9 @@ var app = $.sammy(function() {
         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() {
                 socket.send('MPD_API_ADD_TRACK,'+browsepath);
             });
-            add_all_songs.show();
         }
 
         $('#panel-heading').text("Browse database: "+browsepath);