Fixed invisible "Add all" button in browse page
authorDafan Zhai <dafan.zhai@securepoint.de>
Sun, 7 Mar 2021 19:07:57 +0000 (20:07 +0100)
committerDafan Zhai <dafan.zhai@securepoint.de>
Sun, 7 Mar 2021 19:07:57 +0000 (20:07 +0100)
htdocs/index.html
htdocs/js/mpd.js

index ac05928..4c4fc9c 100644 (file)
           </ol>
 
           <div class="col-md-12" id="filter">
-          <button id="add-all-songs" class="btn btn-primary pull-right">Add all</button>
           </div>
 
 
index 319805f..7924061 100644 (file)
@@ -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() {