[Mapbender-commits] r6391 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 22 10:27:54 EDT 2010
Author: christoph
Date: 2010-06-22 14:27:54 +0000 (Tue, 22 Jun 2010)
New Revision: 6391
Modified:
trunk/mapbender/lib/wizard.js
Log:
Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js 2010-06-22 14:18:35 UTC (rev 6390)
+++ trunk/mapbender/lib/wizard.js 2010-06-22 14:27:54 UTC (rev 6391)
@@ -37,8 +37,14 @@
};
var to = function (e) {
- var href = $(this).attr("href");
- var $target = $(href);
+ if (arguments.length === 2) {
+ var $target = arguments[1];
+ var href = "#" + $target.id;
+ }
+ else {
+ var href = $(this).attr("href");
+ var $target = $(href);
+ }
var found = false;
var abort = false;
$target.parents().each(function () {
@@ -72,12 +78,15 @@
};
if (typeof options === "string") {
+ console.log("string!");
if (!$(this).data("isWizard")) {
+ console.log("not a wizard!");
return;
}
if (options === "to" && arguments.length === 2) {
- to.apply(this, null);
+ return to.apply(this, [null, arguments[1]]);
}
+ console.log("invalid command!");
return;
}
More information about the Mapbender_commits
mailing list