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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 18 10:44:20 EDT 2010


Author: christoph
Date: 2010-06-18 14:44:20 +0000 (Fri, 18 Jun 2010)
New Revision: 6371

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:39:50 UTC (rev 6370)
+++ trunk/mapbender/http/plugins/mb_wizard.js	2010-06-18 14:44:20 UTC (rev 6371)
@@ -7,14 +7,17 @@
 		onClickLink: new Mapbender.Event()
 	};
 
-	$wizard.append(o.$target).wizard({
-		fade: true,
-		onClickLink: function ($targets) {
-			that.events.onClickLink.trigger({
-				path: $targets
-			});
-		}
-	});
+	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:39:50 UTC (rev 6370)
+++ trunk/mapbender/lib/wizard.js	2010-06-18 14:44:20 UTC (rev 6371)
@@ -45,11 +45,8 @@
 			};
 		}
 		
-		var panes = $("div", wizardInstance);
-		console.log(wizardInstance);
-		console.log(panes);
-		if (panes.size() > 0) {
-			getPath(panes.eq(0));
+		if (o.startWith) {
+			getPath(o.startWith);
 		}
 
 		$("a.wizard").live("click", function (e) {



More information about the Mapbender_commits mailing list