[fusion-commits] r2198 - trunk/widgets/BufferPanel

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Aug 10 15:38:28 EDT 2010


Author: madair
Date: 2010-08-10 19:38:28 +0000 (Tue, 10 Aug 2010)
New Revision: 2198

Modified:
   trunk/widgets/BufferPanel/BufferPanel.templ
Log:
closes #399: probably a missed commit by hubu but this is the last one to be fixed

Modified: trunk/widgets/BufferPanel/BufferPanel.templ
===================================================================
--- trunk/widgets/BufferPanel/BufferPanel.templ	2010-07-29 17:59:47 UTC (rev 2197)
+++ trunk/widgets/BufferPanel/BufferPanel.templ	2010-08-10 19:38:28 UTC (rev 2198)
@@ -173,14 +173,15 @@
 
 function GetParent()
 {
-    if (popup) {
-        return opener;
-    } else if (parent.Fusion) {
-        return parent;
-    } else if (parent.parent.Fusion) {
-        return parent.parent;
-    }
-    return null;
+	if(popup)
+		return opener;
+	else
+	{
+		var node = parent;
+		while (!node.Fusion && node.parent && node != node.parent)
+			node = node.parent;
+		return node;
+	}
 }
 
 function PickColor(what, allowTransparency, transparent)



More information about the fusion-commits mailing list