[Mapbender-commits] r6382 - in trunk/mapbender: http/plugins lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 22 06:14:49 EDT 2010


Author: christoph
Date: 2010-06-22 10:14:49 +0000 (Tue, 22 Jun 2010)
New Revision: 6382

Modified:
   trunk/mapbender/http/plugins/mb_wizard.js
   trunk/mapbender/lib/wizard.js
Log:


Modified: trunk/mapbender/http/plugins/mb_wizard.js
===================================================================
--- trunk/mapbender/http/plugins/mb_wizard.js	2010-06-22 10:07:09 UTC (rev 6381)
+++ trunk/mapbender/http/plugins/mb_wizard.js	2010-06-22 10:14:49 UTC (rev 6382)
@@ -18,11 +18,13 @@
 						path: $targets
 					});
 				},
-				onBeforeClickLink: function (evt, $targets) {
-					return that.events.onBeforeClickLink.trigger({
+				onBeforeClickLink: function (evt, $link) {
+					var proceed = that.events.onBeforeClickLink.trigger({
 						evt: evt,
-						$t: $targets
+						$link: $link
 					}, "AND");
+					console.log(proceed);
+					return proceed;
 				}
 			});
 		}

Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js	2010-06-22 10:07:09 UTC (rev 6381)
+++ trunk/mapbender/lib/wizard.js	2010-06-22 10:14:49 UTC (rev 6382)
@@ -78,7 +78,8 @@
 				return;
 			}
 
-			var proceed = o.onBeforeClickLink(e, $target);
+			var proceed = o.onBeforeClickLink(e, $(this));
+			console.log(proceed);
 			if (!proceed) {
 				new Mapbender.Warning("Clicked link " + href + " in wizard " + wizardInstance.id + " aborted!");
 				return;



More information about the Mapbender_commits mailing list