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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 1 09:42:28 EDT 2010


Author: christoph
Date: 2010-07-01 13:42:27 +0000 (Thu, 01 Jul 2010)
New Revision: 6489

Modified:
   trunk/mapbender/lib/wizard.js
Log:
trigger events after fade is finished

Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js	2010-07-01 13:42:01 UTC (rev 6488)
+++ trunk/mapbender/lib/wizard.js	2010-07-01 13:42:27 UTC (rev 6489)
@@ -12,15 +12,22 @@
 			return true;
 		}		
 	},
-	_navigate: function ($t) {
+	_navigate: function ($t, path) {
 		if (this.options.fade) {
+			var that = this;
 			$t.siblings("div,form,iframe").fadeOut(function () {
-				$t.fadeIn();
+				$t.fadeIn(function () {
+					that._trigger("to" + $t.attr("id").toLowerCase(), null, {});
+					that.options.onClickLink(path);			
+
+				});
 			});
 		}		
 		else {
 			$t.siblings("div,form,iframe").hide();
 			$t.show();
+			this._trigger("to" + $t.attr("id").toLowerCase(), null, {});
+			this.options.onClickLink(path);			
 		}
 	},
 	_getPath: function ($t) {
@@ -32,12 +39,11 @@
 		if (m && m.path) {
 			p = m.path.split("/");
 		}
-		this.options.onClickLink(p);			
+		return p;
 	},
 	_clickHandler: function (e, $t) {
-		this._getPath($t);
-		this._navigate($t);
-		this._trigger("to" + $t.attr("id").toLowerCase(), null, {});
+		var p = this._getPath($t);
+		this._navigate($t, p);
 		if (e) {
 			e.preventDefault();
 		}



More information about the Mapbender_commits mailing list