diff -Nur activeselect/activeselect.js activeselect.new/activeselect.js --- activeselect/activeselect.js 2007-01-05 07:57:53.000000000 -0800 +++ activeselect.new/activeselect.js 2007-03-18 19:19:16.889657324 -0700 @@ -11,7 +11,6 @@ var extra = $('#' + index + '-activeselect-extra').val(); var targets = $('#' + index + '-activeselect-targets').val(); var input = $('#' + index).get(0); - if (!asdb[uri]) { asdb[uri] = new Drupal.ASDB(uri, targets); } @@ -138,6 +137,7 @@ $(target).empty(); var targetMatches = matches[matchesTarget]['options']; var maxWidth = 0; + var ind=0; for (currMatch in targetMatches) { var value = currMatch; var text = targetMatches[currMatch]['value']; @@ -149,7 +149,7 @@ // 'new Option()' used instead of appendChild(), because IE6 refuses to // display option text if the latter method is used (otherwise they seem // to behave the same). - $(this.targets[targetIndex]).append(new Option(text, value, false, selected)); + this.targets[targetIndex].options[ind++]=new Option(text, value, false, selected); if (selected && !this.targets[targetIndex].multiple) { this.targets[targetIndex].selectedIndex = this.targets[targetIndex].options.length-1; }