fix
This commit is contained in:
parent
69c20952ad
commit
6f8862b631
@ -14,6 +14,7 @@ function inject_search(elem) {
|
|||||||
button.innerHTML = "search";
|
button.innerHTML = "search";
|
||||||
|
|
||||||
function inject_search_result(r) {
|
function inject_search_result(r) {
|
||||||
|
if(!r)return;
|
||||||
var e = document.createElement("div");
|
var e = document.createElement("div");
|
||||||
var a = document.createElement("a");
|
var a = document.createElement("a");
|
||||||
a.href = r.URL;
|
a.href = r.URL;
|
||||||
@ -63,11 +64,13 @@ function inject_search(elem) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
input.onsubmit = function(ev) {
|
input.onsubmit = function(ev) {
|
||||||
search();
|
if (ev.keyCode == 13)
|
||||||
|
search();
|
||||||
};
|
};
|
||||||
|
|
||||||
newsgroup.onsubmit = function(ev) {
|
newsgroup.onkeydown = function(ev) {
|
||||||
search();
|
if (ev.keyCode == 13)
|
||||||
|
search();
|
||||||
};
|
};
|
||||||
|
|
||||||
inner.appendChild(document.createTextNode("text: "));
|
inner.appendChild(document.createTextNode("text: "));
|
||||||
|
Reference in New Issue
Block a user