Whenever there is only 1 file of a certain title and you expand that list, you`ll see that there is 1 checkbox and a 'select all' box. If you click the 'select all' box, the browser stalls for about 5 seconds or longer, and then nothing happens.
You might disable that option - or fix that problem
Elberet, part of the reason the script is written as it is atm is to reduce the size of the code needed to find the stuff... ie, assigning the array by index = BAD.
There's probably some way to solve this better in DOM but then you'll have to write browser specific code to support the older browsers I believe. If there's some common way to do it in all browsers I don't know about it and I sure as hell wont take the time to figure it out when the current solution works just fine.
Last edited by PetriW on Tue Aug 26, 2003 9:37 am, edited 1 time in total.
The solution isn't buggy, only the array creation line in one case.
If you read the base code you'll see that the numbers are treated as strings, and that the bug is only the array creation line. Also, making changes in the base code by artificially adding one item to array is a really bad design habit and will only confuse other developers who might be using the code.
Better to do it properly and address the real issue, the fact that a string is treated as an array size number.
PetriW wrote:Also, making changes in the base code by artificially adding one item to array is a really bad design habit and will only confuse other developers who might be using the code.
Yep, that's true. It's one of my vices to never care about JS code or HTML output that was generated by a PHP/Perl Script: as long as it runs and validates as proper HTML, anything goes...
PetriW wrote:Edit: I should be nicer.
Same goes for me. For some reason I've been quite cranky lately and must have stepped on some people's toes without even noticing... Gomenazai!