[fusion-commits] r1567 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Sep 29 14:36:58 EDT 2008
Author: pagameba
Date: 2008-09-29 14:36:58 -0400 (Mon, 29 Sep 2008)
New Revision: 1567
Modified:
trunk/lib/ApplicationDefinition.js
Log:
Widgets that are not in toolbars and menus also need to pass options to new UI objects otherwise they don't get any visual style.
Modified: trunk/lib/ApplicationDefinition.js
===================================================================
--- trunk/lib/ApplicationDefinition.js 2008-09-29 18:26:44 UTC (rev 1566)
+++ trunk/lib/ApplicationDefinition.js 2008-09-29 18:36:58 UTC (rev 1567)
@@ -820,7 +820,12 @@
widget.id = this.name;
$(this.name).widget = widget;
if (widget.uiClass) {
- widget.setUiObject(new widget.uiClass());
+ widget.setUiObject(new widget.uiClass({
+ label: this.label,
+ image: this.imageUrl,
+ imageClass: this.imageClass,
+ toggle: this.isExclusive
+ }));
if (widget.uiObj.addTo) {
widget.uiObj.addTo($(this.name));
}
More information about the fusion-commits
mailing list