1
0
mirror of synced 2024-11-26 14:56:07 +03:00

insert select2 container before element instead of after. better bootstrap compat. fixes #278

This commit is contained in:
Igor Vaynberg 2012-08-07 22:31:36 -07:00
parent 1ef57f86af
commit 4d3f8b6332

View File

@ -493,7 +493,7 @@
this.opts.element this.opts.element
.data("select2", this) .data("select2", this)
.hide() .hide()
.after(this.container); .before(this.container);
this.container.data("select2", this); this.container.data("select2", this);
this.dropdown = this.container.find(".select2-drop"); this.dropdown = this.container.find(".select2-drop");