diff options
| author | LiquidLemon <liquidlemon@protonmail.com> | 2018-08-18 17:43:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-18 17:43:29 +0200 |
| commit | 425c4d9a1657263e324d9e7cc212a11ceb21db5c (patch) | |
| tree | 0621bc5b4383df81ab928a70f1cc3bd9728b8e18 /searx/static/themes/simple/js/searx_src/searx_mapresult.js | |
| parent | 2190e2f35da54d320830aaa03959259bab49356f (diff) | |
| parent | d377563723d2917fb7ee38c2f4cbdc4e19fb53ac (diff) | |
Merge branch 'master' into master
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.js | 5 |
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!"; }); } } |