mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-05 14:26:16 +00:00
fix: use queryselector to remove dragover class
This commit is contained in:
parent
4cc4580310
commit
d692a1858b
@ -292,7 +292,7 @@ function appInit() {
|
||||
|
||||
domCache.progressBar.value = 0;
|
||||
domCache.progressBar.addEventListener('change', function(event) {
|
||||
if(current_song && current_song.currentSongId >= 0) {
|
||||
if (current_song && current_song.currentSongId >= 0) {
|
||||
var seekVal = Math.ceil(current_song.totalTime * (domCache.progressBar.value / 100));
|
||||
sendAPI({"cmd": "MPD_API_SET_SEEK", "data": {"songid":current_song.currentSongId,"seek": seekVal}});
|
||||
}
|
||||
@ -408,7 +408,7 @@ function appInit() {
|
||||
document.getElementById(event.dataTransfer.getData('Text')).remove();
|
||||
dragEl.style.display = '';
|
||||
queueBody.insertBefore(dragEl, event.target.parentNode);
|
||||
var tr = queueBody.getElementsByTagName('tr');
|
||||
var tr = queueBody.querySelectorAll('.dragover');
|
||||
var trLen = tr.length;
|
||||
for (var i = 0; i < trLen; i++) {
|
||||
tr[i].classList.remove('dragover');
|
||||
|
Loading…
Reference in New Issue
Block a user