summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/script.js3
-rw-r--r--frontend/style.css1
2 files changed, 3 insertions, 1 deletions
diff --git a/frontend/script.js b/frontend/script.js
index 6f4775e..20f5b08 100644
--- a/frontend/script.js
+++ b/frontend/script.js
@@ -9,7 +9,8 @@ function populateSearchBar(docset_json) {
// 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"] + "')\">" +
+ "<button id=\"docset-" + docset_json["CFBundleIdentifier"] + "-parent\" class=\"docset-parent\" onclick=\"set_embed_page('" + docset_json["docset_index"] + "')\">" +
+ "<img class=\"docset-icon\" src=\"" + docset_json["icon.png"] + "\"/>" +
docset_json["CFBundleName"] +
"</button>" +
"</td>" +
diff --git a/frontend/style.css b/frontend/style.css
index d3fa92c..dbaf66b 100644
--- a/frontend/style.css
+++ b/frontend/style.css
@@ -7,6 +7,7 @@ input {
}
.docset-parent {
+ text-align: left;
width: 100%;
}