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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 18 10:45:57 EDT 2010


Author: christoph
Date: 2010-06-18 14:45:57 +0000 (Fri, 18 Jun 2010)
New Revision: 6372

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-18 14:44:20 UTC (rev 6371)
+++ trunk/mapbender/http/plugins/mb_wizard.js	2010-06-18 14:45:57 UTC (rev 6372)
@@ -7,17 +7,19 @@
 		onClickLink: new Mapbender.Event()
 	};
 
-	if (o.$target.size() > 0) {
-		$wizard.append(o.$target).wizard({
-			fade: true,
-			startWith: o.$target.eq(0),
-			onClickLink: function ($targets) {
-				that.events.onClickLink.trigger({
-					path: $targets
-				});
-			}
-		});
-	}
+	Mapbender.events.init.register(function () {
+		if (o.$target.size() > 0) {
+			$wizard.append(o.$target).wizard({
+				fade: true,
+				startWith: o.$target.eq(0),
+				onClickLink: function ($targets) {
+					that.events.onClickLink.trigger({
+						path: $targets
+					});
+				}
+			});
+		}
+	});
 };
 
 $wizard.mapbender(new WizardApi(options));

Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js	2010-06-18 14:44:20 UTC (rev 6371)
+++ trunk/mapbender/lib/wizard.js	2010-06-18 14:45:57 UTC (rev 6372)
@@ -17,6 +17,7 @@
 		}, options || {});
 		
 		var getPath = function ($t) {
+			console.log($t);
 			var m = $t.metadata({
 				type: "attr",
 				name: "data"



More information about the Mapbender_commits mailing list