mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
d6e40c5826
commit
29e06e01f9
2 changed files with 16 additions and 6 deletions
|
@ -1505,11 +1505,16 @@ function proxify()
|
||||||
{
|
{
|
||||||
try{
|
try{
|
||||||
for(let i=prompt.url_proxy.length;i>=0;--i)
|
for(let i=prompt.url_proxy.length;i>=0;--i)
|
||||||
|
{
|
||||||
if(document.querySelector("#fnref\\:"+String(i)))
|
if(document.querySelector("#fnref\\:"+String(i)))
|
||||||
delete document.querySelector("#fnref\\:"+String(i)).href
|
link_tmp = document.querySelector("#fnref\\:"+String(i))
|
||||||
document.querySelector("#fnref\\:"+String(i)).addEventListener('click', function () {
|
link_tmp.removeAttribute('href')
|
||||||
|
link_tmp.removeAttribute('id')
|
||||||
|
link_tmp.addEventListener('click', function () {
|
||||||
modal.style.display = 'block'; modal_open(prompt.url_proxy[i])
|
modal.style.display = 'block'; modal_open(prompt.url_proxy[i])
|
||||||
})
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}catch(e){}
|
}catch(e){}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1505,11 +1505,16 @@ function proxify()
|
||||||
{
|
{
|
||||||
try{
|
try{
|
||||||
for(let i=prompt.url_proxy.length;i>=0;--i)
|
for(let i=prompt.url_proxy.length;i>=0;--i)
|
||||||
|
{
|
||||||
if(document.querySelector("#fnref\\:"+String(i)))
|
if(document.querySelector("#fnref\\:"+String(i)))
|
||||||
delete document.querySelector("#fnref\\:"+String(i)).href
|
link_tmp = document.querySelector("#fnref\\:"+String(i))
|
||||||
document.querySelector("#fnref\\:"+String(i)).addEventListener('click', function () {
|
link_tmp.removeAttribute('href')
|
||||||
|
link_tmp.removeAttribute('id')
|
||||||
|
link_tmp.addEventListener('click', function () {
|
||||||
modal.style.display = 'block'; modal_open(prompt.url_proxy[i])
|
modal.style.display = 'block'; modal_open(prompt.url_proxy[i])
|
||||||
})
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}catch(e){}
|
}catch(e){}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue