Igor Vaynberg
75edea83b2
added support for data-locked=true next to locked=locked attr. fixes #503 .
2013-06-25 21:56:31 -07:00
Igor Vaynberg
4969dcb42c
fix #1396 - fix destroy() when double initting
2013-06-23 15:21:16 -07:00
Igor Vaynberg
ef136731d4
move markup escaping of selection into the formatSelection callback. fixes #1417 . fixes #1420
2013-06-23 14:32:45 -07:00
vitalets
c57dd1f0ff
fix: data not passed in select2-loaded event
2013-06-22 18:19:44 +04:00
Igor Vaynberg
3ab1aafae5
fix #1425 ctrl+enter should not open
2013-06-19 22:49:35 -07:00
Igor Vaynberg
ce67f7b7fb
fix #1426 - reinitting screws up tabindex
2013-06-19 22:39:03 -07:00
Igor Vaynberg
455067ed4e
fix #1391 make tabbing out work when no results message is shown
2013-06-13 21:02:49 -07:00
Igor Vaynberg
c36b53ad24
fix #1404 allow formatnomatches to be null in multiselects
2013-06-13 20:48:48 -07:00
Igor Vaynberg
48294f2aea
remove undermask for ie since its no longer needed after #1414
2013-06-13 20:34:59 -07:00
Igor Vaynberg
4aaa887b64
fix ie detection logic
2013-06-12 18:32:22 -07:00
Igor Vaynberg
7c729555e5
improve highlighting in single selects
2013-06-12 17:56:58 -07:00
Igor Vaynberg
29129008d5
when opened scroll to selected item. fixes #1408 . closes #1411
2013-06-12 17:49:32 -07:00
Igor Vaynberg
b1867b5341
fix access to search method. fixes #1392
2013-06-06 21:58:10 -07:00
Igor Vaynberg
4917429c7a
fixes #1387 , better handling of ajax handler var
2013-06-05 08:23:49 -07:00
Mike S
bbd08bec03
Restoring allowedMethod container
2013-06-04 10:09:49 -07:00
Mike S
796c9e802a
Renamed to search
2013-06-04 10:04:14 -07:00
Mike S
06130ffc12
Added setSearch method
2013-06-04 10:04:13 -07:00
Igor Vaynberg
30dac9a40b
export default escapeMarkup function so it can be easily accessed. #1222
2013-06-04 08:42:46 -07:00
Igor Vaynberg
4e7a8b00fc
a tweak to prevent clicks propagating through the mask on IE9. #1058
2013-06-04 08:33:02 -07:00
Igor Vaynberg
8904e42ef9
correctly handle undefined placeholders. tweak to issue #1365
2013-06-03 12:12:46 -07:00
Igor Vaynberg
def8adca7c
cleaner way to detect older IE
2013-06-03 11:19:00 -07:00
Igor Vaynberg
5d8f03c90b
clarify syntax. fixes #1358
2013-06-03 10:02:19 -07:00
Igor Vaynberg
d08d9ff18c
Revert "add title for choice item"
...
This reverts commit 79228ce1e0
.
2013-06-03 09:55:52 -07:00
Igor Vaynberg
a4a3eedd51
component stays open after clicking on a native select in IE. fixes #1356
2013-05-31 17:57:21 -07:00
Igor Vaynberg
efc609d073
close on tab-out. fixes #1341
2013-05-31 17:14:29 -07:00
Igor Vaynberg
cb7b5464a1
only validate initSelection is present on val() if we are not clearing
2013-05-31 15:29:14 -07:00
Igor Vaynberg
9a3666edb5
Merge pull request #1365 from corinnaerin/master
...
Feature: Allow placeholders with nonempty values
2013-05-31 15:12:32 -07:00
Jeff Turcotte
ae71175dbe
Added ability to get the dropdown element
2013-05-31 12:17:15 -04:00
Corinna Schmidt
50cbd3927c
new placeholderOption option
...
added ability to specify an option through a function or the shortcut
"first" which will be used as the placeholder option. If no placeholder
text is specified, then the text of this option will be used as the
placeholder text.
2013-05-30 13:41:08 -04:00
Igor Vaynberg
ae2f61ef12
Merge pull request #1351 from alexhaas/patch-1
...
Fixing inline width declaration when this.opts.width is set to "copy"
2013-05-28 13:15:54 -07:00
Igor Vaynberg
6858742e16
improve focus handling on mobiles. fixes #1344
2013-05-28 12:32:36 -07:00
alexhaas
0fc90ec95a
Update select2.js
...
Fixing a container width problem that was caused by an inline width declaration when this.opts.width is set to "copy" (the default).
2013-05-27 15:13:09 -03:00
Igor Vaynberg
87e62004f6
remove unnecessary code
2013-05-22 23:40:26 -07:00
Igor Vaynberg
f1a5fe2c9e
remove dupe format no matches messages. fixes #1341
2013-05-22 23:38:39 -07:00
Igor Vaynberg
213d281ece
fix first char being lost. fixes #196
2013-05-22 22:14:42 -07:00
Igor G.
dae97ffc83
Remove duplication of "No matches found" message
...
In case if data is fetched in chunks, not at once, "No matches found" message is shown as many times as we requested for it.
Lets say we have 15 items, and data is fetched 5 at a time. After all items are selected, "No matches found" message would be duplicated 3 times.
2013-05-21 17:20:24 +03:00
Igor Vaynberg
70f1b29882
optimize mousemove listener. fixes #1328
2013-05-17 08:14:09 -07:00
James Ramsay
856dc0b526
Added support for css class for selected elements
2013-05-17 09:11:58 +10:00
Igor Vaynberg
06440a6bf8
MultiSelect JavaScript error - no method 'showSearch'. fixes #1311
2013-05-14 15:17:24 -07:00
Igor Vaynberg
de6d90c079
fix typo. fixes #1310
2013-05-14 14:05:33 -07:00
Julen Ruiz Aizpuru
66e06acde8
Removed BOM.
2013-05-14 11:41:31 +02:00
dirkpostma
f235a84aa8
Turn off autocorrect and autocapitilze
...
On e.g. mobile devices, it's more user friendly to turn off autocorrect in input fields. This patch adds the attributes autocorrect, autocapitilize and spellcheck. See also:
http://davidwalsh.name/disable-autocorrect
2013-05-12 21:06:16 +03:00
Igor Vaynberg
4e1873fb9d
set maxlength on search when maximumInputLength is defined. closes #538
2013-05-10 00:43:30 -07:00
Igor Vaynberg
7fc16ed094
fix focus in mobile. fixes #1018
2013-05-09 09:48:31 -07:00
Igor Vaynberg
11c08cab12
bind/delegate -> on. #1260
2013-05-09 00:07:35 -07:00
Igor Vaynberg
92617ec54e
preserve order of elements in the data call. fixes #1280
2013-05-08 23:53:30 -07:00
Foxel
a957ed81fd
Fixed undefined this.autofocus on destroy while creating on element that already have select2 applied
2013-05-09 10:36:46 +07:00
Igor Vaynberg
5762b85dd2
prevent opening of a disabled select via api. fixes #1272
2013-05-07 12:39:18 -07:00
Igor Vaynberg
92ceb93e93
fix ajax defaults not to interfere with options
2013-05-07 09:07:03 -07:00
Igor Vaynberg
bcfa3fc702
show search if minimum input length has been set
2013-05-07 08:39:16 -07:00