Archived
1
0
This commit is contained in:
Jeff Becker 2016-11-02 11:23:17 -04:00
parent b393c066b0
commit 89a004e8ec
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -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]);
} }