1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Merge pull request #1081 from gboer/patch-2

Fix for when you specify tags using JSON-encoded select2-tags-attribute.
This commit is contained in:
Igor Vaynberg 2013-03-23 13:21:18 -07:00
commit 74a2805dde

View File

@ -794,7 +794,7 @@ the specific language governing permissions and limitations under the Apache Lic
if ("tags" in opts) {
throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id");
}
opts.tags=opts.element.attr("data-select2-tags");
opts.tags=opts.element.data("select2Tags");
}
if (select) {