1
0
mirror of synced 2024-11-26 06:46:04 +03:00

Update select2.js

Fix for when you specify tags using JSON-encoded select2-tags-attribute.

And thank you for properly implementing my (earlier) submitted hack :)
This commit is contained in:
gboer 2013-03-23 15:05:16 +01:00
parent 4a1c8491a7
commit ea39b25bf6

View File

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