[Mapbender-commits] r6377 - in trunk/mapbender: http/plugins lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 22 06:00:57 EDT 2010
Author: christoph
Date: 2010-06-22 10:00:57 +0000 (Tue, 22 Jun 2010)
New Revision: 6377
Modified:
trunk/mapbender/http/plugins/mb_wizard.js
trunk/mapbender/lib/wizard.js
Log:
Modified: trunk/mapbender/http/plugins/mb_wizard.js
===================================================================
--- trunk/mapbender/http/plugins/mb_wizard.js 2010-06-22 09:57:41 UTC (rev 6376)
+++ trunk/mapbender/http/plugins/mb_wizard.js 2010-06-22 10:00:57 UTC (rev 6377)
@@ -4,6 +4,7 @@
var that = this;
this.events = {
+ onBeforeClickLink: new Mapbender.Event(),
onClickLink: new Mapbender.Event()
};
@@ -13,9 +14,12 @@
fade: true,
startWith: o.$target.eq(0),
onClickLink: function ($targets) {
- return that.events.onClickLink.trigger({
+ that.events.onClickLink.trigger({
path: $targets
- }, "AND");
+ });
+ },
+ onBeforeClickLink: function ($targets) {
+ return that.events.onBeforeClickLink.trigger($targets, "AND");
}
});
}
Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js 2010-06-22 09:57:41 UTC (rev 6376)
+++ trunk/mapbender/lib/wizard.js 2010-06-22 10:00:57 UTC (rev 6377)
@@ -28,7 +28,7 @@
if (m && m.path) {
p = m.path.split("/");
}
- return o.onClickLink(p);
+ o.onClickLink(p);
};
var navigate = function ($t) {
@@ -44,10 +44,11 @@
};
var clickHandler = function (e, $t) {
- var proceed = getPath($t);
+ var proceed = onBeforeClickLink(e, $t);
if (!proceed) {
return;
}
+ getPath($t);
navigate($t);
e.preventDefault();
};
More information about the Mapbender_commits
mailing list