From efa4d4443f69d43de092e2ded88d88a933f10ebc Mon Sep 17 00:00:00 2001 From: Dafan Zhai Date: Sun, 7 Mar 2021 20:07:57 +0100 Subject: [PATCH 1/2] Fixed invisible "Add all" button in browse page --- htdocs/index.html | 1 - htdocs/js/mpd.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/index.html b/htdocs/index.html index ac05928..4c4fc9c 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -118,7 +118,6 @@
-
diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 319805f..7924061 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -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(''); var add_all_songs = $('#add-all-songs'); add_all_songs.off(); // remove previous binds add_all_songs.on('click', function() { From bd95651d61dc6d81f6c1ca8fd78f79d1ce378426 Mon Sep 17 00:00:00 2001 From: SuperBFG7 Date: Tue, 9 Mar 2021 13:03:04 +0100 Subject: [PATCH 2/2] removed two obsolete lines --- htdocs/js/mpd.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 7924061..984c3f8 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -80,11 +80,9 @@ var app = $.sammy(function() { if (browsepath) { $('#filter').append(''); 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);