summaryrefslogtreecommitdiff
path: root/frontend/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/script.js')
-rw-r--r--frontend/script.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/frontend/script.js b/frontend/script.js
index 90dcb9a..6f4775e 100644
--- a/frontend/script.js
+++ b/frontend/script.js
@@ -1,5 +1,4 @@
const endpoint = "http://127.0.0.1:8080/endpoints"
-let i = 0;
function set_embed_page(url) {
@@ -7,12 +6,8 @@ function set_embed_page(url) {
}
function populateSearchBar(docset_json) {
- //console.log(docset_json);
- ++i;
- console.log(i);
-
- // Add to search bar
- document.getElementById("searchbar").getElementsByTagName("tbody")[0].innerHTML += "<tr>" +
+ // Add to docset-table
+ document.getElementById("docset-table").getElementsByTagName("tbody")[0].innerHTML += "<tr>" +
"<td scope=\"row\">" +
"<button id=\"docset-" + docset_json["CFBundleIdentifier"] + "-parent\" class=\"docset-parent\" onclick=\"set_embed_page('" + docset_json["docset_root"] + "')\">" +
docset_json["CFBundleName"] +