comparison gis_gui/lib/blocks.js @ 248:fcb7876178d1

Reload-Button
author fknauft
date Fri, 16 Sep 2011 10:59:10 +0200
parents 825a92d0ab10
children d6c7bedf4370
comparison
equal deleted inserted replaced
247:47bba001d718 248:fcb7876178d1
166 $("div.block div.titlebar div.close_button").live("click", function(e){ 166 $("div.block div.titlebar div.close_button").live("click", function(e){
167 segment = $(this).parents().filter("div.block"); 167 segment = $(this).parents().filter("div.block");
168 segment.fadeOut(function(){ segment.remove();}); 168 segment.fadeOut(function(){ segment.remove();});
169 }); 169 });
170 170
171 // TitleBar Reload
172 $("div.block div.titlebar div.reload_button").live("click", function(e){
173 segment = $(this).parents().filter("div.block");
174 console.debug("guiBlocks_init().live(reload) segment[0].id="+ segment[0].id);
175 //FJK: funktioniert leider noch nicht!
176 // var blockid=$(this).parents().firstElementChild.id;
177 // var mapblock=getBlock(blockid);
178 // var params=mapblock.readMapParams();
179 // var be = mapblock.element;
180 //var mapblock = $(be).find(".map_box");
181 // console.debug("guiBlocks_init().live(reload) params="+ new String(params));
182 // mapblock.updateMap(be,params);
183 });
184
171 } 185 }
186
187 function getBlock(id){
188 for (b in this.blocks) {
189 if (b.id == id) {
190 return b;
191 }
192 }
193 return null;
194 }