[fusion-commits] r2163 - sandbox/jxlib-3.0/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 20 16:17:34 EDT 2010
Author: pagameba
Date: 2010-05-20 16:17:34 -0400 (Thu, 20 May 2010)
New Revision: 2163
Modified:
sandbox/jxlib-3.0/widgets/Legend.js
Log:
adding support for hidden metadata jxUnselectable (which needs to be set to 'true' and added to the <Map> tag's Extension LayerMetadata.)
Modified: sandbox/jxlib-3.0/widgets/Legend.js
===================================================================
--- sandbox/jxlib-3.0/widgets/Legend.js 2010-05-20 19:55:58 UTC (rev 2162)
+++ sandbox/jxlib-3.0/widgets/Legend.js 2010-05-20 20:17:34 UTC (rev 2163)
@@ -617,7 +617,7 @@
isOpen: layer.expandInLegend,
contextMenu: this.getContextMenu(),
image: this.imgLayerThemeIcon,
- selectable: layer.getMetadata('jxUnselectable') != 'true'
+ selectable: !layer.metadata.jxUnselectable || (layer.metadata.jxUnselectable && layer.metadata.jxUnselectable != 'true')
};
var folder = new Fusion.Widget.Legend.TreeFolder(opt);
var img = folder.elements.get('jxTreeIcon');
@@ -645,7 +645,7 @@
var opt = {};
opt.statusIsDefault = layer.statusDefault;
opt.label = style.legendLabel == '' ? ' ' : style.legendLabel;
- opt.selectable = layer.getMetadata('jxUnselectable') != 'true';
+ opt.selectable = !layer.metadata.jxUnselectable || (layer.metadata.jxUnselectable && layer.metadata.jxUnselectable != 'true');
if (!style) {
opt.image = this.imgDisabledLayerIcon;
More information about the fusion-commits
mailing list