[Mapbender-commits] r6292 - trunk/mapbender/lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jun 17 08:01:21 EDT 2010
Author: christoph
Date: 2010-06-17 12:01:21 +0000 (Thu, 17 Jun 2010)
New Revision: 6292
Modified:
trunk/mapbender/lib/wizard.js
Log:
Modified: trunk/mapbender/lib/wizard.js
===================================================================
--- trunk/mapbender/lib/wizard.js 2010-06-17 11:56:47 UTC (rev 6291)
+++ trunk/mapbender/lib/wizard.js 2010-06-17 12:01:21 UTC (rev 6292)
@@ -2,7 +2,7 @@
/*
* Link between various interfaces, imagine a wizard
*/
-$.fn.wizard = function () {
+$.fn.wizard = function (options) {
return this.each(function () {
var $module = $(this);
var module = $module.mapbender();
@@ -16,27 +16,17 @@
var target = $target.mapbender();
- var showTarget = function () {
- $target.show();
- };
-
- if (typeof target === "object" && typeof target.show === "function") {
- showTarget = function () {
- // calls the show function of the module, not jQuery's show
- target.show();
- };
- }
-
var clickHandler = function (e) {
$module.hide();
- showTarget();
+ $target.show();
e.preventDefault();
};
- if (typeof module === "object" && typeof module.hide === "function") {
- clickHandler = function (e) {
- // calls the hide function of the module, not jQuery's hide
- module.hide(showTarget);
+ if (options && options.fade) {
+ clickHandler = function(e){
+ $module.fadeOut(function () {
+ $target.fadeIn();
+ });
e.preventDefault();
};
}
More information about the Mapbender_commits
mailing list