summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/js/searx_src/searx_mapresult.js
diff options
context:
space:
mode:
authorAlex <alex@al-f.net>2018-08-09 16:13:50 +0200
committerAlexandre Flament <alex@al-f.net>2018-08-14 17:21:30 +0200
commit3ba0d0516e5cabce8ebcc9a27c0fe069fa23f52c (patch)
treedffd7311f1bf9bba9386101c67f5e03c30a53116 /searx/static/themes/simple/js/searx_src/searx_mapresult.js
parent845ba79e7532dedad2bb96e5d68504b6729bee14 (diff)
simple theme update
- npm package update - apply #1226 - implement vim help dialog - display cookies and search URL with preferences - allow to enable / disable Open Access DOI rewrite - add a clear text button on the left of the search button - implement #1011 : the HTML title page is not set when using POST - remove searx/static/themes/simple/img/loader.gif - use full width when only there are only images as result
Diffstat (limited to 'searx/static/themes/simple/js/searx_src/searx_mapresult.js')
-rw-r--r--searx/static/themes/simple/js/searx_src/searx_mapresult.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/static/themes/simple/js/searx_src/searx_mapresult.js b/searx/static/themes/simple/js/searx_src/searx_mapresult.js
index 823f64815..869d07da0 100644
--- a/searx/static/themes/simple/js/searx_src/searx_mapresult.js
+++ b/searx/static/themes/simple/js/searx_src/searx_mapresult.js
@@ -90,13 +90,14 @@
newHtml += "</td></tr>";
}
}
- result_table_loadicon.classList.add('invisible');
+ result_table_loadicon.parentNode.removeChild(result_table_loadicon);
result_table.classList.remove('invisible');
result_table.querySelector("tbody").innerHTML = newHtml;
}
})
.catch(function() {
- result_table_loadicon.innerHTML = result_table_loadicon.innerHTML + "<p class=\"text-muted\">could not load data!</p>";
+ result_table_loadicon.classList.remove('invisible');
+ result_table_loadicon.innerHTML = "could not load data!";
});
}
}