Summary: | WMSBrowser: bug in mySearch javascript function | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Bart van den Eijnden <bartvde@osgis.nl> |
Component: | Widget | Assignee: | Bart van den Eijnden <bartvde@osgis.nl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | thijs.brentjens@geodan.nl |
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | 2.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
I suggest the following for the mySearch function instead of the current implementation: function mySearch( sr, value ) { var i; var result = null; if (sr.GetValue( "layer_id" ) == value) { result = sr; } else { if (sr.maoChildren.length > 0) { for (i=0; result == null && i < sr.maoChildren.length; i++) { result = mySearch( sr.maoChildren[i], value ); } } } return result; }
Julien/Paul, are you guys okay with me fixing this in 2.2?
Sure! Please do!
Fixed in CVS version only.