]> Untitled Git - ympd.git/commitdiff
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 ac05928aebac6e4d5324f1ce7f587315659b3383..4c4fc9cdd5f6ac1481dac8c34c98d92357a5dcec 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 319805f059f37e9586cb02f9091d1901fb08c687..7924061f0873c94c1c9ab3a6e5fce12081cd1525 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() {