HTML_Quickform_advmultiselect 1.5.0 : item selection behavior

From: Date: Fri, 06 Feb 2009 09:32:41 +0000
Subject: HTML_Quickform_advmultiselect 1.5.0 : item selection behavior
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51530@lists.php.net to get a copy of this message
Christian Weiske a écrit :
I tried the example in Opera, it works fine except the fact that, when you select an item on the right side and click "up" or "down", you cannot click it again since the item is not selected anymore.
Laurent Laville a écrit :
Hello Christian, This behavior was effectivly changed for 2 reasons, but I can revert it back to previous behavior, if you think, and why not a large audience, it's a wrong way. Two reasons are : 1. Even if current version 1.4.1 when you move an item from unselected to selected list (and in the other way too), the final selection item was UNSELECTED I thought to apply the same UNSELECT to final item result 2. Due to usage of fancy attribute with possibility to add color/background-color, it was in some case (I know it's so few), difficult to see what's item selected Hope my explains were clear enough. Now if a large QFAMS users vote -1 to this new behavior, it's not a problem for me to revert it back. one line to change (line 455 of uncompressed javascript file) Replace
    l.selectedIndex = -1;
By
    l.selectedIndex = j;
That's all
Hello all, After a good night to think about this, I've found usefull to allow programmers to choice what they want as item selection behavior (keep or left). So I found a solution, and it will be commit this day. No need to vote; all audience will be happy

« previous php.pear.dev (#51530) next »