diff --git a/searx/webapp.py b/searx/webapp.py index 060f60d4e..9d473a383 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1292,7 +1292,7 @@ function modal_open(url, num) { if(lock_chat==1) return; prev_chat = document.getElementById('chat_talk').innerHTML; - if(num == 'pdf') { document.getElementById('chat_talk').innerHTML = prev_chat+'
'+'打开链接'+''+ PDF +''+"
";} + if(num == 'pdf') { document.getElementById('chat_talk').innerHTML = prev_chat+'
'+'打开链接'+''+ 'PDF' +''+"
";} else{ document.getElementById('chat_talk').innerHTML = prev_chat+'
'+'打开链接'+''+ String(num) +''+"
";} modal.style.display = 'block'; document.querySelector("#readability-reader").innerHTML = ''; diff --git a/searx/webapp1.py b/searx/webapp1.py index 060f60d4e..9d473a383 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1292,7 +1292,7 @@ function modal_open(url, num) { if(lock_chat==1) return; prev_chat = document.getElementById('chat_talk').innerHTML; - if(num == 'pdf') { document.getElementById('chat_talk').innerHTML = prev_chat+'
'+'打开链接'+''+ PDF +''+"
";} + if(num == 'pdf') { document.getElementById('chat_talk').innerHTML = prev_chat+'
'+'打开链接'+''+ 'PDF' +''+"
";} else{ document.getElementById('chat_talk').innerHTML = prev_chat+'
'+'打开链接'+''+ String(num) +''+"
";} modal.style.display = 'block'; document.querySelector("#readability-reader").innerHTML = '';