simplified javascrip: no ie here!

This commit is contained in:
dockes 2009-01-23 10:38:46 +00:00
parent 765b6cdd81
commit 893dc47f89

View File

@ -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>