Plugin does not work with the latest browser versions
Hi All, please help me, with the last versions of Chrome and Firefox, this plugin doesn't work fine . You can test it from the official DEMO page http://geodan.github.io/duallistbox/sample-100.html The problem is that doesn't load fine the two list when shift element.
Thanks! Max
Confirm. We have the same issue on the latest chrome version.
I've solved by rewriting SortOptions function, here is my code:
$.fn.sortOptions = function() { return this.each(function() { var opts_list = $(this).find('option'); opts_list.sort(function(a, b) { return $(a).text() > $(b).text() ? 1 : -1; }); var html = []; opts_list.each( function(){ html.push('<option title="'+$(this).text()+'" value="' + $(this).val() + '">' +$(this).text()+ '</option>'); }); $(this).html(''); $(this).append(html.join('')); }); };