some cleanups
This commit is contained in:
parent
2b6861b9a9
commit
57145a9ab0
2 changed files with 10 additions and 9 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
*~
|
*~i
|
||||||
|
*.xpi
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
var leo_search = {
|
var leo_search = {
|
||||||
onLoad: function() {
|
onLoad: function() {
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
this.strings = document.getElementById("leo_search-strings");
|
this.strings = document.getElementById("leo_search-strings");
|
||||||
},
|
},
|
||||||
onSearchCommand: function(e, lang, sitelang) {
|
onSearchCommand: function(e, lang, sitelang) {
|
||||||
var query = window._content.window.getSelection();
|
var query = window._content.window.getSelection();
|
||||||
|
|
@ -10,7 +10,7 @@ var leo_search = {
|
||||||
var myURL = "http://dict.leo.org/" + lang + "de?lang=" + sitelang + "&search=" + query;
|
var myURL = "http://dict.leo.org/" + lang + "de?lang=" + sitelang + "&search=" + query;
|
||||||
openNewTabWith(myURL, null, null, true);
|
openNewTabWith(myURL, null, null, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener("load", leo_search.onLoad, false);
|
window.addEventListener("load", leo_search.onLoad, false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue