[Mapbender-commits] r7315 - in trunk/mapbender: http/plugins lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Dec 16 04:43:25 EST 2010
Author: christoph
Date: 2010-12-16 01:43:25 -0800 (Thu, 16 Dec 2010)
New Revision: 7315
Modified:
trunk/mapbender/http/plugins/mb_wizard.js
trunk/mapbender/lib/wizard.js
Log:
pass link onClickLink
Modified: trunk/mapbender/http/plugins/mb_wizard.js
===================================================================
--- trunk/mapbender/http/plugins/mb_wizard.js 2010-12-16 09:41:47 UTC (rev 7314)
+++ trunk/mapbender/http/plugins/mb_wizard.js 2010-12-16 09:43:25 UTC (rev 7315)
@@ -14,9 +14,13 @@
fade: true,
startWith: o.$target.eq(0),
onClickLink: function ($targets) {
- that.events.onClickLink.trigger({
- path: $targets
- });
+ var args = [{
+ path: $targets
+ }];
+ for (var i = 1; i < arguments.length; i++) {
+ args.push(arguments[i]);
+ }
+ that.events.onClickLink.trigger.apply(this, args);
},
onBeforeClickLink: function (evt, $link) {
var proceed = that.events.onBeforeClickLink.trigger({
Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js 2010-12-16 09:41:47 UTC (rev 7314)
+++ trunk/mapbender/lib/wizard.js 2010-12-16 09:43:25 UTC (rev 7315)
@@ -12,14 +12,14 @@
return true;
}
},
- _navigate: function ($t, path) {
+ _navigate: function ($t, path, $a) {
if (this.options.fade) {
var that = this;
$t.siblings("div,form,iframe").fadeOut(function () {
$t.fadeIn(function () {
that._trigger("to" + $t.attr("id").toLowerCase(), null, {});
that._trigger("to", null, {});
- that.options.onClickLink(path);
+ that.options.onClickLink(path, $a);
});
});
@@ -28,7 +28,7 @@
$t.siblings("div,form,iframe").hide();
$t.show();
this._trigger("to" + $t.attr("id").toLowerCase(), null, {});
- this.options.onClickLink(path);
+ this.options.onClickLink(path, $a);
}
},
_getPath: function ($t) {
@@ -42,9 +42,9 @@
}
return p;
},
- _clickHandler: function (e, $t) {
+ _clickHandler: function (e, $t, $a) {
var p = this._getPath($t);
- this._navigate($t, p);
+ this._navigate($t, p, $a);
if (e) {
e.preventDefault();
}
@@ -106,7 +106,7 @@
"Clicked link " + href + " in wizard " +
wizardInstance.element.attr("id")
);
- this._clickHandler(e, $target);
+ this._clickHandler(e, $target, $(this));
},
_create: function () {
var wizardInstance = this;
More information about the Mapbender_commits
mailing list