Re: [pmapper-users] Bug in xmlhttp.js

2007-10-13 Thread Alessandro Pasotti
Il venerdì 12 ottobre 2007, Armin Burger ha scritto: > Thanks for the hint. I don't know any more why I used indexOf... > > I tried a jQuery-fied version like > > for (var l in layers) { > $('#spxg_' + > l).removeClass('unvis').removeClass('vis').addClass(layers[l]); > } > > and it worked fine

Re: [pmapper-users] Bug in xmlhttp.js

2007-10-12 Thread Armin Burger
Thanks for the hint. I don't know any more why I used indexOf... I tried a jQuery-fied version like for (var l in layers) { $('#spxg_' + l).removeClass('unvis').removeClass('vis').addClass(layers[l]); } and it worked fine. If you can try if it also removes your problem than I will put tha

[pmapper-users] Bug in xmlhttp.js

2007-10-12 Thread Alessandro Pasotti
Hi all, I've run into a bug in function updateTocScale(tocurl), when I have two layers with a similar name the vis/unvis classes are not applied correctly: I have two raster layers named Satellite SatelliteHiRes The check on line 161 (3.2beta1) if (spanObj.id.indexOf( 'spxg_' + l) != -1) { r