fix
This commit is contained in:
parent
b393c066b0
commit
89a004e8ec
@ -15,8 +15,8 @@ function inject_search(elem) {
|
|||||||
function inject_search_result(r) {
|
function inject_search_result(r) {
|
||||||
var e = document.createElement("div");
|
var e = document.createElement("div");
|
||||||
e.innerHTML = r.PostMarkup;
|
e.innerHTML = r.PostMarkup;
|
||||||
output.appendChild(e);
|
|
||||||
output.appendChild(document.createElement("hr"));
|
output.appendChild(document.createElement("hr"));
|
||||||
|
output.appendChild(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
button.onclick = function(ev) {
|
button.onclick = function(ev) {
|
||||||
@ -34,7 +34,7 @@ function inject_search(elem) {
|
|||||||
if (result.length == 0) {
|
if (result.length == 0) {
|
||||||
status.innerHTML = "no results";
|
status.innerHTML = "no results";
|
||||||
} else {
|
} else {
|
||||||
status.innerHTML = "found "+result.length+"results";
|
status.innerHTML = "found "+result.length+" results";
|
||||||
for (var idx = 0 ; idx < result.length; idx ++ ) {
|
for (var idx = 0 ; idx < result.length; idx ++ ) {
|
||||||
inject_search_result(result[idx]);
|
inject_search_result(result[idx]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user