[Mapbender-commits] r7911 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 5 10:40:37 EDT 2011
Author: armin11
Date: 2011-07-05 07:40:37 -0700 (Tue, 05 Jul 2011)
New Revision: 7911
Modified:
trunk/mapbender/http/javascripts/mod_overviewToggle.js
Log:
Possibility to start the overview open with element var: initialOpen = true.
Modified: trunk/mapbender/http/javascripts/mod_overviewToggle.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_overviewToggle.js 2011-07-05 09:12:54 UTC (rev 7910)
+++ trunk/mapbender/http/javascripts/mod_overviewToggle.js 2011-07-05 14:40:37 UTC (rev 7911)
@@ -35,11 +35,12 @@
* and Simplified BSD license.
* http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
*/
+options.initialOpen = options.initialOpen ? true : false;
var ovSwitchTarget = options.target[0];
var ovSwitchId = options.id;
-var overview_visible = false;
+var overview_visible = options.initialOpen;
//▶
//◀
@@ -68,6 +69,10 @@
display:"none",
left: overviewLeft + "px"
});
+ } else {
+ $('.ui-widget-header').css('width',overviewInitialWidth+'px');
+ $this.addClass("ui-corner-top").removeClass("ui-corner-all");
+ $ovToggleButton.removeClass("ui-icon-triangle-1-e").addClass("ui-icon-triangle-1-w");
}
$this.css({
@@ -103,6 +108,7 @@
$ovToggleButton.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-w");
});
overview_visible = false;
+ options.initialOpen = false;
});
}
else{
@@ -127,7 +133,8 @@
$ovToggleButton.removeClass("ui-icon-triangle-1-e").addClass("ui-icon-triangle-1-w");
});
overview_visible = true;
+ options.initialOpen = true;
});
}
});
-});
\ No newline at end of file
+});
More information about the Mapbender_commits
mailing list