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