# HG changeset patch # User casties # Date 1290513262 -3600 # Node ID 752ce3dfd23e5bb1bae98209e38d3a5e4e02c7f5 # Parent 49fb47bbe2e6f1b5007cb70da4920e4be24635d9 working on maps diff -r 49fb47bbe2e6 -r 752ce3dfd23e gis_gui/blocks/map.js --- 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) + }); } }; diff -r 49fb47bbe2e6 -r 752ce3dfd23e gis_gui/head.pt --- 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 @@
+

ChinaGIS

\ No newline at end of file