[Freeipa-devel] [PATCH] 095 Fixed selection of single value in combobox

Endi Sukma Dewata edewata at redhat.com
Tue Feb 28 14:19:37 UTC 2012


On 2/23/2012 9:39 AM, Petr Vobornik wrote:
> Attaching patch
>
> On 02/23/2012 04:34 PM, Petr Vobornik wrote:
>> Patch description:
>>
>> When editable combobox had only one option and input field was cleared,
>> the option couldn't be selected if it was selected before.
>>
>> This patch adds click handler to option elements. The handler calls
>> select_on_change.
>>
>> When different option is selected select_on_change is executed twice. To
>> avoid duplicate call of value_changed an open state of option area is
>> checked. In first pass the area will be closed so it won't be executed
>> in second. When selected option is clicked, only onclick handler is
>> processed.
>>
>> This patch assumes that select event will be processed before click
>> event.
>>
>> https://fedorahosted.org/freeipa/ticket/2070

ACK.

Last time there was a problem with test automation using Sahi. Hopefully 
this trick with double execution will fix it.

-- 
Endi S. Dewata




More information about the Freeipa-devel mailing list