Commit cbbdff68 authored by Ziad Saab's avatar Ziad Saab
Browse files

Fixed performance of forms refresh_custom_select

refresh_custom_select was looping twice thru the select options:
- once using $() to create the li elements
- then a second time trying to find the selected and disabled elements

this was causing the page to freeze when selects with many options were refreshed
instead the code was changed to construct the list's HTML with a string, and add
the selected and disabled classes at the same time if necessary.
parent 6e403a57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment