Matt Slocum
2342d91925
Fix Focus war with modals
...
Bootstrap modal (and maybe others) require focus to maintain in the modal (because that what a modal is). The dropdown is outside of the modal, so we need to stopPropagation on the event so the modal doesn't know.
2014-03-11 12:14:17 -06:00
Kevin Brown
2d906ee10f
Merge pull request #2140 from ivaynberg/issue_1541
...
Add `shouldFocusInput` option [Fix #1541 ]
2014-03-07 10:14:32 -05:00
Kevin Brown
51e5d436ff
Merge pull request #2160 from s7anley/bugfix/2073-select2-removing
...
Multiselect items are not removed when event is prevented
2014-03-07 10:12:01 -05:00
Coleman Watts
43e381ed37
Provide context for evaluated functions
2014-03-05 21:02:06 -05:00
Kevin Brown
e6fbfcd101
Merge pull request #2125 from colemanw/evaluateFix
...
Fix evaluation of formatLoadMore
2014-03-05 20:57:43 -05:00
Ján Koščo
f3c6d6d51f
After prevented removing of item in multiselect, proper item is focused
2014-03-05 11:27:08 +01:00
Ján Koščo
86a9c79b04
Removed unnecessary animation during unseint multiselect by close button
2014-03-05 11:27:03 +01:00
Ján Koščo
2059b5d4d3
Unselected item is returned as options only if event isn't prevented
2014-03-05 11:26:50 +01:00
Daniel Norman
660643ae87
Fix a typo in the docs.
2014-02-28 11:21:53 +01:00
Kevin Brown
ec97c818c8
Merge pull request #2151 from dhardtke/csp_fixes
...
fix select2 csp errors / warnings
2014-02-27 14:18:00 -05:00
dhardtke
60359f9d43
fix select2 csp errors / warnings
2014-02-27 20:07:57 +01:00
Igor Vaynberg
c3592c3f87
Merge pull request #2147 from juanluisrp/patch-1
...
Unit of measure px is redundant
2014-02-26 08:21:57 -08:00
Igor Vaynberg
27acc27d37
Merge pull request #2148 from djarnis73/patch-1
...
Update select2.css to prevent float & width style to leak in
2014-02-26 08:21:24 -08:00
djarnis73
b7695ec6a9
Update select2.css
2014-02-26 13:01:10 +01:00
Juan Luis Rodríguez Ponce
b3ecfaabca
Unit of measure px is redundant
...
Remove 'px' when property is set to 0.
2014-02-26 12:13:19 +01:00
Kevin Brown
c5e13d3aa8
Merge pull request #2146 from ebraminio/master
...
Update and improve Persian (fa) translations
2014-02-25 19:39:20 -05:00
Ebrahim Byagowi
60c9320e1d
Update and improve Persian (fa) translations
2014-02-26 03:33:23 +03:30
Kevin Brown
d87e93dd45
Add shouldFocusInput
option [ Fix #1541 ]
...
This adds a `shouldFocusInput` option that determines whether or
not the focusser should be automatically focused. By default, the
focusser will always be focused, unless `minimumResultsForSearch`
is less than zero.
`close` on single selects took an option `params` argument which
at one point was used to tell the focusser to not automatically
focus. This was added at one point when tweaking the mask [1]
and later reverted to fix a bug that came as a result [2]. The
leftovers of this code has been removed in this commit.
[1]: e162a4802c
[2]: 9bc68f089e
2014-02-21 20:06:21 -05:00
Kevin Brown
b2b5ebd637
Merge pull request #2129 from campbell/master
...
Bugfix - only selected options that are not disabled should be used when initializing a dropdown
2014-02-21 10:27:01 -05:00
Pete Campbell
2a4e026b49
Bugfix - only selected options that are not disabled should be used when initializing the dropdown
2014-02-17 21:16:26 -05:00
Coleman Watts
9460b0c9b6
Fix evaluation of formatLoadMore
2014-02-14 17:14:12 -08:00
Kevin Brown
0636e42cbc
Merge pull request #2098 from gdi2290/patch-1
...
update copyright year
2014-02-08 15:31:20 -05:00
Kevin Brown
97af0a39d9
Merge pull request #2106 from PeterMozesMerl/master
...
Update select2_locale_hu.js
2014-02-08 15:30:22 -05:00
PeterMozesMerl
b3d2d25ca2
Update select2_locale_hu.js
...
Language: "karakter". Grammar: missing comma.
2014-02-06 23:59:54 +01:00
PatrickJS
218021789f
update copyright year
2014-02-03 23:44:44 -08:00
Kevin Brown
3c28c35503
Merge pull request #2095 from mkurz/readonly_chaining
...
Allow chaining for .select2('readonly', ...)
2014-02-03 15:46:53 -08:00
Kevin Brown
beabb63f03
Merge pull request #2092 from colemanw/strings
...
Accept strings as well as functions for localization
2014-02-03 15:41:32 -08:00
Matthias Kurz
bd3bd55719
Allow chaining for .select2('readonly', ...)
2014-02-03 16:07:23 +01:00
Coleman Watts
175c78441f
Accept strings as well as functions for localization
2014-01-31 21:04:36 -08:00
Kevin Brown
596cf52d07
Merge pull request #2070 from jeanmonod/master
...
Allow to display item created by createSearchChoice at the end of the dropdown
2014-01-24 16:58:51 -08:00
Jeanmonod David
ed77cab7d5
Allow to display item created by createSearchChoice at the end of the list
...
ref #595
2014-01-24 18:54:56 +01:00
Kevin Brown
fb6e863839
Merge pull request #2065 from jdecuyper/hideSelectionFromResult-fix
...
Fix for hideSelectionFromResult
2014-01-21 10:05:44 -08:00
jdecuyper
c87615f14c
The function hideSelectionFromResult was tested against undefined as a property and not as a function
2014-01-21 11:45:13 -06:00
Kevin Brown
0f1372ce72
Merge pull request #1733 from flyerhzm/append-label-only-when-formatted-defined
...
append label only when formatted is not undefined
2014-01-21 05:49:36 -08:00
Kevin Brown
9cb18478a5
Merge pull request #2055 from mac2000/feature-request-search-input-placeholder
...
Optional Search Input Placeholder parameter added
2014-01-21 05:27:32 -08:00
Marchenko Alexandr
89ae701691
merge
2014-01-21 12:17:58 +02:00
Marchenko Alexandr
2e901f79a1
merge
2014-01-21 11:54:48 +02:00
Kevin Brown
e559f92c35
Merge pull request #2001 from arendjr/master
...
Don't rely on :visible and :not(..., ...) selectors which only work with Sizzle
2014-01-20 16:48:27 -08:00
Kevin Brown
cd92405312
Merge pull request #2053 from jdecuyper/feature-hide-selection-from-result
...
Add hideSelectionFromResult function
2014-01-20 06:30:12 -08:00
Kevin Brown
2244365790
Merge pull request #2056 from mkurz/fix_2042
...
Reset background position for multiple backgrounds [Fixes #2042 ]
2014-01-20 06:22:47 -08:00
Kevin Brown
a186a16235
Merge pull request #2057 from mkurz/dppx_fix
...
Use dppx instead of non-existing ppx resolution unit
2014-01-20 06:18:02 -08:00
Matthias Kurz
05efcaf160
Use dppx instead of non-existing ppx resolution unit
2014-01-20 11:50:46 +01:00
Matthias Kurz
6a3ec3f5de
Fix for #2042 Chrome bug: Reset the background position for multiple backgrounds
2014-01-20 11:46:39 +01:00
Marchenko Alexandr
f4886a0afa
Optional Search Input Placeholder parameter added
2014-01-20 11:38:33 +02:00
jdecuyper
84cf134a4e
Add hideSelectionFromResult function
2014-01-19 21:12:39 -06:00
Kevin Brown
9eb12a8906
Merge pull request #1816 from funkjedi/accessibility
...
Accessibility updates based on jQuery UI Autocomplete
2014-01-19 18:40:50 -08:00
Tim Robertson
eaf09c7f76
Accessibility updates based on jQuery UI Autocomplete
2014-01-19 18:52:56 -05:00
Kevin Brown
d5cb4bfa1c
Merge pull request #2044 from sieppl/master
...
singleSelect: setting nextSearchTerm in initSelection
2014-01-19 13:04:00 -08:00
Sebastian Kather
48d392635f
singleSelect: setting nextSearchTerm in initSelection
...
For single select the nextSearchTerm callback is called when
initSelection returned data
2014-01-16 16:12:00 +01:00
Igor Vaynberg
7087c4bfbf
Merge pull request #2037 from codemumbler/patch-1
...
Changed default text for min number of characters.
2014-01-13 08:33:15 -08:00