[Mapbender-commits] r7104 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 11 03:32:47 EST 2010


Author: christoph
Date: 2010-11-11 00:32:47 -0800 (Thu, 11 Nov 2010)
New Revision: 7104

Modified:
   trunk/mapbender/http/plugins/mb_resultList_transferToDigitize.js
Log:
hide results after features have been passed to digitizing module

Modified: trunk/mapbender/http/plugins/mb_resultList_transferToDigitize.js
===================================================================
--- trunk/mapbender/http/plugins/mb_resultList_transferToDigitize.js	2010-11-11 08:30:46 UTC (rev 7103)
+++ trunk/mapbender/http/plugins/mb_resultList_transferToDigitize.js	2010-11-11 08:32:47 UTC (rev 7104)
@@ -46,7 +46,8 @@
 });
 
 Mapbender.events.init.register(function () {
-	var editButton = Mapbender.modules[options.target[0]].addGlobalButton({
+	var resultList = Mapbender.modules[options.target[0]];
+	var editButton = resultList.addGlobalButton({
 		title: translatedI18nObject.labelButton, 
 		classes: 'buttonMargin',
 		callback: function (data) {
@@ -73,9 +74,10 @@
 			}
 			window.frames[options.digitizeId].appendGeometryArray(digitizeArray);
 			tab_open(options.digitizeId);
+			resultList.hide();
 		}
 	});	
-	Mapbender.modules[options.target[0]].events.wfsConfSet.register(function (obj) {
+	resultList.events.wfsConfSet.register(function (obj) {
 		var isTransactionalGeom = obj.wfsConf.wfs_transaction != "" && obj.wfsConf.wfs_transaction !== null;
 		if (!isTransactionalGeom) {
 			editButton.hide();



More information about the Mapbender_commits mailing list