[Mapbender-commits] r6005 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Apr 22 09:10:12 EDT 2010
Author: topi
Date: 2010-04-22 09:10:09 -0400 (Thu, 22 Apr 2010)
New Revision: 6005
Modified:
trunk/mapbender/http/plugins/mb_tabs_vertical.js
Log:
added accordionOptions
Modified: trunk/mapbender/http/plugins/mb_tabs_vertical.js
===================================================================
--- trunk/mapbender/http/plugins/mb_tabs_vertical.js 2010-04-22 13:03:58 UTC (rev 6004)
+++ trunk/mapbender/http/plugins/mb_tabs_vertical.js 2010-04-22 13:10:09 UTC (rev 6005)
@@ -67,18 +67,16 @@
);
}
-var accordionOptions = {
+var defaults = {
collapsible: true,
autoHeight: false,
active: typeof options.active !== "number" ?
false : options.active - 1
};
-if (typeof options.attribute !== "undefined") {
- accordionOptions[attribute] = options.attribute;
-}
+var myOptions = $.extend(defaults, options.accordionOptions);
-$this.accordion(accordionOptions);
+$this.accordion(myOptions);
var TabsVerticalApi = function (o) {
this.setDimensions = function () {
More information about the Mapbender_commits
mailing list