Igor Vaynberg
|
54033cdb04
monitors source element for change events and syncs the selection. opts.initSelection function has to be specified by the user for this to work because ids have to be mapped back to objects. select2 provides this function automatically for select elements and tags helper.
|
преди 14 години |
David Rosen
|
12a3e68256
Update select2.js
|
преди 14 години |
Igor Vaynberg
|
6183a490a3
minor formatting cleanup
|
преди 14 години |
Justin DuJardin
|
0645a09e8a
tags in the exports.
|
преди 14 години |
Justin DuJardin
|
5094df886c
Remove duplicate window exports
|
преди 14 години |
Igor Vaynberg
|
a16190c822
only call initSelection() when there is actual input. avoids making users implement empty input check in their initSelection()s
|
преди 14 години |
Igor Vaynberg
|
19810405ce
automatically initialize selection in tagging mode. closes #19
|
преди 14 години |
Igor Vaynberg
|
34a7f83f7b
removed misplaced logging
|
преди 14 години |
Igor Vaynberg
|
d2ec53e33c
initial tagging support via opts.tags
|
преди 14 години |
Igor Vaynberg
|
0ca86701ad
generalized selection initialization behind opts.initSelection
|
преди 14 години |
Igor Vaynberg
|
bf25e5e7e4
export classes, issue #13
|
преди 14 години |
Igor Vaynberg
|
b0b70243b6
correct namespace. issue #13
|
преди 14 години |
Igor Vaynberg
|
c913b7e3f9
added reusable helpers into the global window.Select2 namespace. closes #13
|
преди 14 години |
Igor Vaynberg
|
6fee67bcff
Merge pull request #5 from justindujardin/jdd-sizable
|
преди 14 години |
Justin DuJardin
|
c5d6cb1327
Deal with non-existent style attributes, and returning calculated pixel widths as a fallback.
|
преди 14 години |
Igor Vaynberg
|
40843b1b98
better handling of non-numeric ids
|
преди 14 години |
Igor Vaynberg
|
26982e1952
change event, closes #11
|
преди 14 години |
Igor Vaynberg
|
6bef0b5bf6
fix placeholder styling broken in a previous code cleanup. closes #12
|
преди 14 години |
Igor Vaynberg
|
538c6d1584
camel cased a var and reformatted after jquery 1.4.2 compat change
|
преди 14 години |
Justin DuJardin
|
b162567c22
jQuery 1.4.2 compatibility : - use attr() instead of prop() - use .bind() and .delegate() instead of .on() - pass ajax success handler as an argument, instead of chaining call to .success()
|
преди 14 години |
Justin DuJardin
|
576607c46f
Undo rebase indentation changes.
|
преди 14 години |
Justin DuJardin
|
de51a5dbdd
Hide search.parent() container when minimumResultsForSearch is not met on a single select.
|
преди 14 години |
Justin DuJardin
|
09798e3b5f
Remove experimental code that accidentally got checked in.
|
преди 14 години |
Justin DuJardin
|
1fff4788eb
compress getContainerWidth(), add missing semicolon.
|
преди 14 години |
Justin DuJardin
|
55a257ddba
Better extract width style from inline element :
|
преди 14 години |
Justin DuJardin
|
b2c6ced65f
Rework select2 and styles to support styled width's (rather than just fixed pixel widths)
|
преди 14 години |
Igor Vaynberg
|
eddc40934c
small code cleanup
|
преди 14 години |
Igor Vaynberg
|
b30b455505
Fix CRLF
|
преди 14 години |
Igor Vaynberg
|
341a3cd8b5
fix ie8 compat, closes #7
|
преди 14 години |
Igor Vaynberg
|
1ab192ac7b
option to hide the search field if there are just a few results. closes #4 and closes #6
|
преди 14 години |