From ea39b25bf6fe10b8b3ba93d4a930c25307f66951 Mon Sep 17 00:00:00 2001 From: gboer Date: Sat, 23 Mar 2013 15:05:16 +0100 Subject: [PATCH] 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 :) --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index ac542afc..300ace84 100644 --- a/select2.js +++ b/select2.js @@ -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) {