[mapguide-commits] r5461 - trunk/MgDev/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri Dec 10 00:28:11 EST 2010
Author: hubu
Date: 2010-12-09 21:28:11 -0800 (Thu, 09 Dec 2010)
New Revision: 5461
Modified:
trunk/MgDev/Web/src/viewerfiles/legendui.templ
Log:
Fix ticket: https://trac.osgeo.org/mapguide/ticket/1571
Modified: trunk/MgDev/Web/src/viewerfiles/legendui.templ
===================================================================
--- trunk/MgDev/Web/src/viewerfiles/legendui.templ 2010-12-10 05:27:19 UTC (rev 5460)
+++ trunk/MgDev/Web/src/viewerfiles/legendui.templ 2010-12-10 05:28:11 UTC (rev 5461)
@@ -144,12 +144,12 @@
var isGroup = node.type == 0;
var item = '<div id="' + node.objectId + '"><table border=0 cellspacing="0" cellpadding="0"><tr height=17>';
//expand/collapse icon
- item += '<td width=16 id="Ex_' + node.objectId + '">' + (isGroup? MakeExpandCode(node) : '') + '</td>';
- if(isGroup || !node.base)
+ item += '<td width=16 id="Ex_' + node.objectId + '">' + ((isGroup == true)? MakeExpandCode(node) : '') + '</td>';
+ if(isGroup == true || node.base == false)
{
//checkbox
item += '<td width=16 id="Chk_' + node.objectId + '">' + MakeCheckCode(node) + '</td>';
- if(node.code == "L" && node.selectable)
+ if(node.code == "L" && node.selectable == true)
{
item += '<td width=16 id="Sel_' + node.objectId + '">' + MakeSelectableCode(node) + '</td>';
}
More information about the mapguide-commits
mailing list