Mercurial > hg > ChinaGisRestApi
changeset 205:4597679ea327
Text from Features in a Side-Info-Box
author | fknauft |
---|---|
date | Wed, 16 Feb 2011 17:42:59 +0100 |
parents | 3429870d50be |
children | 47acfb4a97cf |
files | gis_gui/blocks/layer.js |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gis_gui/blocks/layer.js Wed Feb 16 17:17:18 2011 +0100 +++ b/gis_gui/blocks/layer.js Wed Feb 16 17:42:59 2011 +0100 @@ -153,8 +153,9 @@ }); function showInContentWindow(text) { - var sidediv = document.getElementById('map_info'); - sidediv.innerHTML = text; + var orig_html=$(elem).find(".mapping_info").html(); + $(elem).find(".mapping_info").html(text); + $(elem).find(".mapping_info").click(function(){$(elem).find(".mapping_info").html(orig_html);}); } console.debug("new marker layer=",newMarker);