[mapguide-commits] r6185 - trunk/MgDev/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 26 02:29:27 EDT 2011
Author: liuar
Date: 2011-10-25 23:29:27 -0700 (Tue, 25 Oct 2011)
New Revision: 6185
Modified:
trunk/MgDev/Web/src/viewerfiles/legendui.templ
Log:
Submit on behalf of libr
Fix Ticket #1837
issue:
whether the baselayer is selectable or not,the selectableIcon is always invisible.
solution:
old logic: all baselayer can't be selected
I remove the code section which judge the layer is selectable or not out of the baselayer filter.
Modified: trunk/MgDev/Web/src/viewerfiles/legendui.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/legendui.templ 2011-10-26 06:07:06 UTC (rev 6184)
+++ trunk/MgDev/Web/src/viewerfiles/legendui.templ 2011-10-26 06:29:27 UTC (rev 6185)
@@ -157,15 +157,15 @@
//expand/collapse icon
item += '<td width=16 id="Ex_' + node.objectId + '">' + (isGroup? MakeExpandCode(node) : MakeBlankCode()) + '</td>';
- if(isGroup || !node.base)
+ if(!node.base||isGroup)
{
//checkbox
item += '<td width=16 id="Chk_' + node.objectId + '">' + MakeCheckCode(node) + '</td>';
- if(node.code == "L" && node.selectable)
- {
- item += '<td width=16 id="Sel_' + node.objectId + '">' + MakeSelectableCode(node) + '</td>';
- }
}
+ if(node.code == "L" && node.selectable)
+ {
+ item += '<td width=16 id="Sel_' + node.objectId + '">' + MakeSelectableCode(node) + '</td>';
+ }
//icon
if(legendTextNoWrap)
{
More information about the mapguide-commits
mailing list