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:
parent
2c562038d8
commit
d162cf20c8
@ -27,7 +27,11 @@ $(document).ready(function() {
|
|||||||
if (size > 0) context.select.append(optgroup);
|
if (size > 0) context.select.append(optgroup);
|
||||||
} else {
|
} else {
|
||||||
if ($.inArray(obj[1], context.data.taken_ids) == -1)
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user