[Mapbender-commits] r6403 - trunk/mapbender/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 22 10:57:09 EDT 2010


Author: christoph
Date: 2010-06-22 14:57:09 +0000 (Tue, 22 Jun 2010)
New Revision: 6403

Modified:
   trunk/mapbender/lib/wizard.js
Log:


Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js	2010-06-22 14:55:36 UTC (rev 6402)
+++ trunk/mapbender/lib/wizard.js	2010-06-22 14:57:09 UTC (rev 6403)
@@ -40,8 +40,7 @@
 		var to = function () {
 			if (arguments.length === 2) {
 				var $target = arguments[1];
-				console.log($target);
-				var href = "#" + $target.id;
+				var href = "#" + $target.attr("id");
 				var me = null;
 			}
 			else {
@@ -53,8 +52,6 @@
 			var found = false;
 			var abort = false;
 			$target.parents().each(function () {
-				console.log(wizardInstance);
-				console.log($(this));
 				if (abort || found) {
 					return;
 				}
@@ -86,16 +83,13 @@
 		};
 
 		if (typeof options === "string") {
-			console.log("string!");
 			if (!$(this).data("isWizard")) {
-				console.log("not a wizard!");
 				return;
 			}
 			var wizardInstance = this;
 			if (options === "to" && args.length === 2) {
 				return to(null, args[1]);
 			}
-			console.log("invalid command!");
 			return;
 		}
 



More information about the Mapbender_commits mailing list