Mercurial > hg > ChinaGisRestApi
changeset 69:752ce3dfd23e
working on maps
author | casties |
---|---|
date | Tue, 23 Nov 2010 12:54:22 +0100 |
parents | 49fb47bbe2e6 |
children | 9ec7e32e8ad3 |
files | gis_gui/blocks/map.js gis_gui/head.pt |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gis_gui/blocks/map.js Mon Nov 22 17:16:23 2010 +0100 +++ b/gis_gui/blocks/map.js Tue Nov 23 12:54:22 2010 +0100 @@ -58,6 +58,7 @@ guiBlocks.Block.prototype.showMapParams = function(elem,params) { // create html with layer parameters from params + var i = 0; if (elem == null) { elem = this.element; } @@ -72,6 +73,12 @@ if (layers.length > 0) { var tmpl = $(elem).find(".layer_info_tmpl").tmpl(layers); $(elem).find(".map_layer_header").after(tmpl); + // arm edit and delete buttons + for (i = 0; i < layers.length; ++i) + + tmpl.find(".layer_edit_"+i).click(function() { + blocks.addLayerBlock("blocks/layer.html?table="+escape(params.table),"layer", params) + }); } };
--- a/gis_gui/head.pt Mon Nov 22 17:16:23 2010 +0100 +++ b/gis_gui/head.pt Tue Nov 23 12:54:22 2010 +0100 @@ -1,3 +1,4 @@ <div class="head"> +<span style="float:right" tal:content="python:'logged in as %s'%request.get('AUTHENTICATED_USER','')"/> <h1> ChinaGIS </h1> </div> \ No newline at end of file