[fusion-trac] #399: Fix The GetParent() function
Fusion
trac_fusion at osgeo.org
Fri Jul 9 05:38:50 EDT 2010
#399: Fix The GetParent() function
-----------------------+----------------------------------------------------
Reporter: hubu | Owner: hubu
Type: defect | Status: new
Priority: P2 | Milestone: Future
Component: Widgets | Version: 1.1.1
Severity: Major | Keywords:
External_id: | State: New
Browser: All | Os: All
-----------------------+----------------------------------------------------
In some widget(BufferPanel, Search and SelectWithin) template, the
GetParent() function is defined like this:
function GetParent()
{
if(popup)
return opener;
else
return parent.parent;
}
This is not correct. It should be like this:
function GetParent()
{
if(popup)
return opener;
else
{
var node = parent;
while (!node.Fusion && node.parent && node != node.parent)
node = node.parent;
return node;
}
}
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/399>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list