Mostly fixed issue #121

Made the text show up but now the select won't update when options are
added or deleted
This commit is contained in:
Alex Sanford 2011-07-13 22:53:05 -03:00
parent 2c562038d8
commit d162cf20c8

View File

@ -27,7 +27,11 @@ $(document).ready(function() {
if (size > 0) context.select.append(optgroup);
} else {
if ($.inArray(obj[1], context.data.taken_ids) == -1)
context.select.append(new Option(obj[0], obj[1], true, true));
{
var option = new Option("", obj[1], true, true);
$(option).text(obj[0]);
context.select.append(option);
}
}
}