- Posts: 6
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
function sortSelect(thisSelect, firstOptSticky) { var selectOptions = $('option', thisSelect); if(firstOptSticky) { selectOptions = $('option:not(:first)', thisSelect); } selectOptions.detach().sort(function(a, b) { var at = $(a).text(); var bt = $(b).text(); return (at > bt) ? 1 : ((at < bt) ? -1 : 0); }); selectOptions.appendTo(thisSelect); } $(document).on('ready pjax:scriptcomplete',function(){ if($('#uidselect').length > 0) { sortSelect($('#uidselect'), true); } });
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Maybe best to activate select2 on this dropdown ?Create a custom admin theme and add a custom.js file to that theme - www.limesurvey.org/manual/Custom_Admin_T...eating_a_new_theme_3
Place this in that custom.js file:
Please Log in to join the conversation.