fix page 2+ rendering. fixes #175
This commit is contained in:
parent
6b736669d2
commit
adc15e3682
@ -582,12 +582,7 @@
|
||||
|
||||
populate(results, 0);
|
||||
|
||||
children=container.children();
|
||||
if (children.length===0) {
|
||||
container.html(markup.join(""));
|
||||
} else {
|
||||
$(children[children.length-1]).append(markup.join(""));
|
||||
}
|
||||
container.append(markup.join(""));
|
||||
|
||||
for (uid in uidToData) {
|
||||
$("#select2-result-"+uid, container).data("select2-data", uidToData[uid]);
|
||||
|
Loading…
Reference in New Issue
Block a user