Archived
1
0
This commit is contained in:
Jeff Becker 2016-12-26 11:48:00 -05:00
parent 69c20952ad
commit 6f8862b631

View File

@ -14,6 +14,7 @@ function inject_search(elem) {
button.innerHTML = "search";
function inject_search_result(r) {
if(!r)return;
var e = document.createElement("div");
var a = document.createElement("a");
a.href = r.URL;
@ -63,10 +64,12 @@ function inject_search(elem) {
};
input.onsubmit = function(ev) {
if (ev.keyCode == 13)
search();
};
newsgroup.onsubmit = function(ev) {
newsgroup.onkeydown = function(ev) {
if (ev.keyCode == 13)
search();
};