[Mapbender-commits] r6302 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jun 17 09:25:04 EDT 2010
Author: christoph
Date: 2010-06-17 13:25:04 +0000 (Thu, 17 Jun 2010)
New Revision: 6302
Modified:
trunk/mapbender/lib/wizard.js
Log:
Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js 2010-06-17 12:50:36 UTC (rev 6301)
+++ trunk/mapbender/lib/wizard.js 2010-06-17 13:25:04 UTC (rev 6302)
@@ -7,15 +7,15 @@
fade: false
}, options || {});
- var clickHandler = function (e, $m, $t) {
- $m.hide();
+ var clickHandler = function (e, $t) {
+ $t.siblings("div").hide();
$t.show();
e.preventDefault();
};
if (o.fade) {
- clickHandler = function (e, $m, $t) {
- $m.fadeOut(function () {
+ clickHandler = function (e, $t) {
+ $t.siblings("div").fadeOut(function () {
$t.fadeIn();
});
e.preventDefault();
@@ -23,17 +23,16 @@
}
return this.each(function () {
- var $module = $(this);
-
- $("a", $module).live("click", function (e) {
+ var wizardInstance = this;
+ $("a.wizard", $module).live("click", function (e) {
var $link = $(this);
var href = $link.attr("href");
var $target = $(href);
- if ($target.size() === 0) {
+ if ($target.size() === 0 || wizardInstance !== $target.parent().get(0)) {
return;
}
- clickHandler(e, $module, $target);
+ clickHandler(e, $target);
});
});
};
\ No newline at end of file
More information about the Mapbender_commits
mailing list