fixing videos not being unloaded when closed

This commit is contained in:
Zergling_man 2022-04-03 19:19:44 +10:00
parent 16fef709f6
commit d231297a5d
2 changed files with 10 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function src(mode, offset) {
`) `)
var add = '' var add = ''
} else { } else {
var add = '&type=accounts&offset=' + $('#src-accts .cvo').length var add = '&type=accounts&offset=' + $('#src-accts .cusr').length
} }
var q = $('#src').val() var q = $('#src').val()
@ -91,6 +91,11 @@ function src(mode, offset) {
#${escapeHTML(tag)} #${escapeHTML(tag)}
</a> </a>
<br> ` <br> `
} else if (!tag.history) {
tags+=`<a onclick="tl('tag','${tag.name}','${acct_id}','add')" class="pointer">
#${escapeHTML(tag.name)}
</a>
<br> `
} else { } else {
tags = tags + graphDraw(tag, acct_id) tags = tags + graphDraw(tag, acct_id)
} }

View File

@ -339,7 +339,10 @@ function openFinder(dir) {
postMessage(['openFinder', dir], '*') postMessage(['openFinder', dir], '*')
} }
function stopVideo() { function stopVideo() {
document.getElementById('video').pause() video=document.getElementById('video')
video.pause()
video.src=''
//document.getElementById('video').pause()
} }
function copyImgUrl() { function copyImgUrl() {
var murl = $('#imagemodal').attr('data-original') var murl = $('#imagemodal').attr('data-original')