From 7ed6a18fc5676cd5f7c3a7384b9c9d7789bcdf4e Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Mon, 27 Sep 2021 17:25:11 -0400 Subject: [PATCH] more play now controls --- webapp/assets/js/mstream.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/webapp/assets/js/mstream.js b/webapp/assets/js/mstream.js index aacf47e..314da07 100644 --- a/webapp/assets/js/mstream.js +++ b/webapp/assets/js/mstream.js @@ -140,6 +140,9 @@ function renderFileWithMetadataHtml(filepath, lokiId, metadata) { ${(!metadata || !metadata.title) ? filepath : `${metadata.artist} - ${metadata.title}`}
+ + + remove
`; @@ -156,7 +159,7 @@ function createMusicFileHtml(fileLocation, title, aa, rating) { - + `; @@ -230,7 +233,12 @@ function addToPlaylistUI(playlist) { } function createPopper3(el) { - console.log(el); + if (curFileTracker === el.getAttribute("data-file_location")) { + curFileTracker = undefined; + document.getElementById("pop-f").style.visibility = "hidden"; + return; + } + curFileTracker = el.getAttribute("data-file_location") Popper.createPopper(el, document.getElementById('pop-f'), { placement: 'bottom-end', @@ -1136,8 +1144,11 @@ function submitSearchForm() { ${ key === 'files' || key === 'title' ? `
- - + + + + +
` : '' }