[fusion-commits] r2162 - sandbox/jxlib-3.0/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 20 15:56:06 EDT 2010
Author: pagameba
Date: 2010-05-20 15:55:58 -0400 (Thu, 20 May 2010)
New Revision: 2162
Modified:
sandbox/jxlib-3.0/widgets/Legend.js
Log:
perhaps a functional implementation of jxUnselectable.
Modified: sandbox/jxlib-3.0/widgets/Legend.js
===================================================================
--- sandbox/jxlib-3.0/widgets/Legend.js 2010-05-20 17:47:35 UTC (rev 2161)
+++ sandbox/jxlib-3.0/widgets/Legend.js 2010-05-20 19:55:58 UTC (rev 2162)
@@ -616,7 +616,8 @@
label: layer.legendLabel == '' ? ' ' : layer.legendLabel,
isOpen: layer.expandInLegend,
contextMenu: this.getContextMenu(),
- image: this.imgLayerThemeIcon
+ image: this.imgLayerThemeIcon,
+ selectable: layer.getMetadata('jxUnselectable') != 'true'
};
var folder = new Fusion.Widget.Legend.TreeFolder(opt);
var img = folder.elements.get('jxTreeIcon');
@@ -644,6 +645,7 @@
var opt = {};
opt.statusIsDefault = layer.statusDefault;
opt.label = style.legendLabel == '' ? ' ' : style.legendLabel;
+ opt.selectable = layer.getMetadata('jxUnselectable') != 'true';
if (!style) {
opt.image = this.imgDisabledLayerIcon;
More information about the fusion-commits
mailing list