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' ? `
- - + + + + +
` : '' }