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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 29 06:12:45 EDT 2010


Author: christoph
Date: 2010-06-29 10:12:45 +0000 (Tue, 29 Jun 2010)
New Revision: 6441

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


Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js	2010-06-29 10:03:05 UTC (rev 6440)
+++ trunk/mapbender/lib/wizard.js	2010-06-29 10:12:45 UTC (rev 6441)
@@ -41,19 +41,18 @@
 			e.preventDefault();
 		}
 	},
-	to: function () {
-		if (arguments.length === 2) {
-			var $target = arguments[1];
-			var href = "#" + $target.attr("id");
-			var me = null;
-			var e = null;
-		}
-		else {
-			var href = $(this).attr("href");
-			var $target = $(href);
-			var me = this;
-			var e = arguments[0];
-		}
+	to: function (link, e) {
+		var href, $target, me;
+//		if (arguments.length === 2) {
+//			$target = arguments[1];
+//			href = "#" + $target.attr("id");
+//			me = null;
+//			e = null;
+//		}
+//		else {
+			href = $(link).attr("href");
+			$target = $(href);
+//		}
 		var found = false;
 		var abort = false;
 		console.log($target);
@@ -116,7 +115,7 @@
 		}
 
 		$("a.wizard").live("click", function (e) {
-			wizardInstance.to.apply($(this), [e]);
+			wizardInstance.to(this, e);
 		});
 	}
 });



More information about the Mapbender_commits mailing list