[fusion-commits] r1891 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Aug 12 11:53:57 EDT 2009
Author: zjames
Date: 2009-08-12 11:53:56 -0400 (Wed, 12 Aug 2009)
New Revision: 1891
Modified:
trunk/lib/Widget.js
Log:
closes #279: if the uiObj has no setToolTip, look for one on the contained button
Modified: trunk/lib/Widget.js
===================================================================
--- trunk/lib/Widget.js 2009-08-10 17:58:54 UTC (rev 1890)
+++ trunk/lib/Widget.js 2009-08-12 15:53:56 UTC (rev 1891)
@@ -87,7 +87,11 @@
setUiObject: function(uiObj) {
Fusion.Widget.uiInstances[this.type].push(this);
if (this.widgetTag.tooltip) {
- uiObj.setTooltip(this.widgetTag.tooltip);
+ if (uiObj.setTooltip) {
+ uiObj.setTooltip(this.widgetTag.tooltip);
+ } else if (uiObj.button && uiObj.button.setTooltip){
+ uiObj.button.setTooltip(this.widgetTag.tooltip);
+ }
}
if (this.isExclusive) {
this.getMap().buttonSet.add(uiObj);
More information about the fusion-commits
mailing list