seems i forgot to commit the last changes... :(

This commit is contained in:
Johannes Findeisen 2013-03-06 00:03:50 +01:00
commit 53b16f5e00
27 changed files with 294 additions and 31 deletions

16
chrome/content/overlay.js Normal file
View file

@ -0,0 +1,16 @@
var leo_search = {
onLoad: function() {
this.initialized = true;
this.strings = document.getElementById("leo_search-strings");
},
onSearchCommand: function(e, lang, sitelang) {
var query = window._content.window.getSelection();
if(query != null)
{
var myURL = "http://dict.leo.org/" + lang + "de?lang=" + sitelang + "&search=" + query;
openNewTabWith(myURL, null, null, true);
}
}
};
window.addEventListener("load", leo_search.onLoad, false);