diff --git a/searx/webapp.py b/searx/webapp.py index c2b375ed8..53626d99a 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1151,32 +1151,9 @@ const search_queryquery = "''' + search_query.query.replace('"',"") + r'''" const search_type = "''' + search_type + r'''" const net_search = ''' + net_search_str + r''' ''' # for i in range(1,16): diff --git a/searx/webapp1.py b/searx/webapp1.py index 3b6812fda..09521a23b 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1158,12 +1158,11 @@ function proxify() for(let i=prompt.url_proxy.length;i>=0;--i) { if(document.querySelector("#fnref\\:"+String(i+1))) - link_tmp = document.querySelector("#fnref\\:"+String(i+1)) - link_tmp.removeAttribute('href') - link_tmp.removeAttribute('id') - link_tmp.addEventListener('click', function () { + document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('href') + document.querySelector("#fnref\\:"+String(i+1)).addEventListener('click', function () { modal.style.display = 'block'; modal_open(prompt.url_proxy[i+2]) }); + document.querySelector("#fnref\\:"+String(i+1)).removeAttribute('id') } }catch(e){}