simplified javascrip: no ie here!
This commit is contained in:
parent
765b6cdd81
commit
893dc47f89
@ -4,24 +4,10 @@
|
|||||||
|
|
||||||
<script language="JavaScript">
|
<script language="JavaScript">
|
||||||
function recollsearch() {
|
function recollsearch() {
|
||||||
if (navigator.appName != 'Microsoft Internet Explorer') {
|
|
||||||
var t = document.getSelection();
|
var t = document.getSelection();
|
||||||
recoll(t);
|
window.location.href = 'recoll://search/query?qtp=a&p=0&q=' +
|
||||||
} else {
|
|
||||||
var t = document.selection.createRange();
|
|
||||||
if (document.selection.type == 'Text' && t.text > '') {
|
|
||||||
document.selection.empty();
|
|
||||||
recoll(t.text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function recoll(t) {
|
|
||||||
if (t) {
|
|
||||||
window.location.href = 'recoll://search/query?qtp=a&p=0&q=' +
|
|
||||||
encodeURIComponent(t);
|
encodeURIComponent(t);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user