1
0
mirror of synced 2024-11-23 05:26:10 +03:00

Merge pull request #2023 from TheDistantSea/feature/remove-hardcoded-classnames

Remove hardcoded class names from $.fn.select2
This commit is contained in:
Kevin Brown 2014-01-08 08:21:02 -08:00
commit 7132a9a398

View File

@ -3185,7 +3185,7 @@ the specific language governing permissions and limitations under the Apache Lic
if ("tags" in opts) {opts.multiple = multiple = true;} if ("tags" in opts) {opts.multiple = multiple = true;}
} }
select2 = multiple ? new MultiSelect2() : new SingleSelect2(); select2 = multiple ? new window.Select2["class"].multi() : new window.Select2["class"].single();
select2.init(opts); select2.init(opts);
} else if (typeof(args[0]) === "string") { } else if (typeof(args[0]) === "string") {