[fusion-commits] r2223 - sandbox/jxlib-3.0/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Sep 10 10:21:19 EDT 2010
Author: pagameba
Date: 2010-09-10 14:21:19 +0000 (Fri, 10 Sep 2010)
New Revision: 2223
Modified:
sandbox/jxlib-3.0/lib/ApplicationDefinition.js
Log:
need to disable multi buttons if any of the contained items are disabled.
Modified: sandbox/jxlib-3.0/lib/ApplicationDefinition.js
===================================================================
--- sandbox/jxlib-3.0/lib/ApplicationDefinition.js 2010-09-10 13:49:40 UTC (rev 2222)
+++ sandbox/jxlib-3.0/lib/ApplicationDefinition.js 2010-09-10 14:21:19 UTC (rev 2223)
@@ -1014,6 +1014,10 @@
widget.uiObj.setEnabled(widget.isEnabled());
widget.registerForEvent(Fusion.Event.WIDGET_STATE_CHANGED, function() {
widget.uiObj.setEnabled(widget.isEnabled());
+ var b = !container.buttons.some(function(w) {
+ return !w.isEnabled();
+ });
+ container.setEnabled(b);
});
}
}
More information about the fusion-commits
mailing list