diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 20:12:57 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 20:12:57 +0200 |
commit | e1baa251fb6ef55adbd664bf80c50601ce68807f (patch) | |
tree | 2c952b79f83130a6d04233c50de1518f67aabfdf /htdocs | |
parent | d1e0c3fffac6d79af7dbe7f9d225c426e1c74724 (diff) | |
download | lifomapserver-e1baa251fb6ef55adbd664bf80c50601ce68807f.tar.gz lifomapserver-e1baa251fb6ef55adbd664bf80c50601ce68807f.tar.bz2 lifomapserver-e1baa251fb6ef55adbd664bf80c50601ce68807f.zip |
Fix Firefox compatibility once more
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/mapscript.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htdocs/mapscript.js b/htdocs/mapscript.js index 716c90a..99f0854 100644 --- a/htdocs/mapscript.js +++ b/htdocs/mapscript.js @@ -248,7 +248,7 @@ function search(e) { regex = new RegExp(query, 'i'); if (item.feature.properties.name.match(regex)) { el = document.createElement("li"); - el.innerHTML = "[" + layers._layers[i].name + "] " + '<a href="javascript:layers._layers[' + i + '].layer._layers[' + item._leaflet_id + '].fire(\'click\') ">' + item.feature.properties.name + "</a>"; + el.innerHTML = "[" + layers._layers[i].name + "] " + '<a href="#" onclick="layers._layers[' + i + '].layer._layers[' + item._leaflet_id + '].fire(\'click\'); return false;">' + item.feature.properties.name + "</a>"; results.appendChild(el); } break; |