aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index 1633c25..dc0864b 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -21,8 +21,6 @@ function fetchAPI(apiEndPoint) {
.then(data => {
console.log(data);
});
- document.getElementById("map_view").classList.add("invisible");
- document.getElementById("loader").classList.remove("invisible");
}
// Copy from function above but now output HTML table instead of plain json
@@ -51,7 +49,13 @@ function fetchHTMLTable(apiEndPoint) {
}
-let search = () => {
+/* Fetch record info using a 'global search' */
+let searchGlobal = () => {
+ let m = document.getElementById('search-input').value;
+ fetchAPI(scriptRoot + "/api/search?s=" + encodeURIComponent(m));
+}
+
+let searchSeq = () => {
let m = document.getElementById('search-input').value;
fetchAPI(scriptRoot + "/api/getDetailsForSeq?seq=" + encodeURIComponent(m));
}