Fix Firefox compatibility once more
This commit is contained in:
parent
d1e0c3fffa
commit
e1baa251fb
@ -248,7 +248,7 @@ function search(e) {
|
|||||||
regex = new RegExp(query, 'i');
|
regex = new RegExp(query, 'i');
|
||||||
if (item.feature.properties.name.match(regex)) {
|
if (item.feature.properties.name.match(regex)) {
|
||||||
el = document.createElement("li");
|
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);
|
results.appendChild(el);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user