X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=public%2Fjs%2Fsyj.js;h=916d2775020bfc96b50241ab9e5d93acf9d8c6e5;hp=54677a27fb09992e40fdfb09f53e4d5078651622;hb=681ed303769262b6108e2e5893fceff999fa92d9;hpb=f0cec87e660f4c34740d6a8c6256f534c67bb8b1 diff --git a/public/js/syj.js b/public/js/syj.js index 54677a2..916d277 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -1090,13 +1090,12 @@ var Nominatim = (function() { }); anchor.observe('click', clickhandler(item.boundingbox)); + Element.text(anchor, item.display_name); - var text = document.createTextNode(item.display_name); var icon = new Element("img", { className: "nominatim-suggestions-icon", src: item.icon || 'icons/world.png' }); - anchor.appendChild(text); // insert does not work; see prototype #1125 li.insert(icon).insert(anchor); $("nominatim-suggestions-list").insert(li); if ($("nominatim-suggestions-list").childNodes.length >= 6) {