Kevin Brown
39394e2ee8
Merge pull request #2770 from stonys/master
...
Add padding to select2 container displayed above
2014-11-26 18:04:05 -05:00
Kevin Brown
f32a94f6b6
Merge pull request #2832 from kahwee/patch-1
...
Spelling mistake for jsDelivr
2014-11-26 08:02:29 -05:00
KahWee Teng
085f62e96f
Spelling mistake for jsDelivr
2014-11-26 15:07:59 +08:00
Kevin Brown
48ae56a2b6
Merge pull request #2828 from LudoZeGeek/patch-3
...
Hide search box if select is empty
2014-11-25 12:48:21 -05:00
Ludovic Montel
285abff24d
Hide search box if select is empty
...
Fix #2282 .
When a select box is empty (this appends in my case, I have a dynamic select box), the search box should not be shown.
2014-11-25 16:48:03 +01:00
Kevin Brown
f382f3d02d
Merge pull request #2755 from kupishkis/2753
...
After clearSearch nextSearchTerm is not cleared
2014-11-21 08:47:35 -05:00
Kevin Brown
9913cb7c25
Merge pull request #2730 from od3n/master
...
updated Malay & Indonesian translations
2014-11-20 21:46:38 -05:00
Kevin Brown
69e8e6e355
Merge pull request #2808 from yuks/patch-1
...
formatMatches translation added
2014-11-14 17:38:28 -05:00
Yuksel
ced4bf692c
formatMatches translation added
2014-11-14 22:17:49 +01:00
Kevin Brown
a8377e3681
Merge pull request #2789 from RustyToms/drop_above_dropHeight_fix
...
recalculate $dropdown height after drop-above class added
2014-11-13 17:56:14 -05:00
Kevin Brown
6d029f3f2f
Merge pull request #2786 from exabugs/master
...
Delete 'StarHack' code. Because select2 support IE8+.
2014-11-05 17:48:33 -05:00
Jonathan Toms
a83ae7858a
recalculate $dropdown height after drop-above class added
2014-11-05 00:10:15 -05:00
exabugs
7f75f46e5b
Delete 'StarHuck' code. Because select2 support IE8+.
2014-11-04 22:04:30 +09:00
Kevin Brown
4e19d87927
modified version identifiers in descriptors for release 3.5.2
2014-11-01 14:43:38 -04:00
Kevin Brown
db7cd1b373
Go back to hiding the original element
...
This was only done to maintain compatibility with labels, back
when we could capture the focus events from the original element.
Now that we handle them in a different way, this is no longer
needed.
This fixes #2769 .
2014-11-01 14:39:06 -04:00
Kevin Brown
e943f6ef08
Revert "Fixed Select2 jumping around in Chrome"
...
This reverts commit 0daee34626
.
This results in artifacts being displayed in Chrome, and doesn't
fix the other jumping issue.
2014-10-31 18:27:33 -04:00
Kevin Brown
1de4be3749
Fixed TypeError when destroying Select2
...
This fixes #2587 .
2014-10-31 18:15:32 -04:00
Kevin Brown
7581fa5708
Merge pull request #2588 from fabdouglas/patch-8
...
Redirect the focus of original input to Select2
2014-10-31 18:13:47 -04:00
Kevin Brown
0daee34626
Fixed Select2 jumping around in Chrome
...
This fixes #2769 , where Select2 will jump around because of how
focus moves to the original element when selections are made.
Because absolute positioning pushed the original element out of the
viewport, bringing it back into the viewport should be the best
fix.
2014-10-31 18:10:13 -04:00
Kevin Brown
0ed9e0283d
Merge pull request #2775 from Splaktar/patch-1
...
Update link for AngularUI
2014-10-31 16:32:56 -04:00
Kevin Brown
f16eb6c621
Merge pull request #2776 from bjornjohansen/master
...
Replaced nonexistent locale "no" with "nb" (Norwegian Bokmål).
2014-10-30 11:51:11 -04:00
Andrius Stonys
9a689a51a0
Consistent padding for .select2-search
...
Case: the dropdown should be shouwn above input. PositionDropdown function then operates by showing dropdown below (and ".select2-search input" has no margin, it gets the wrong dropdown size). Then in the same function calculates the top value, but doesnt take into account, that input will have the "margin-top: 4px". Thus dropdown is displayed 4px lower.
Then the window resizes, the dropdown position is already correct, but then calculations (outerHeight()) get the height including the ".select2-search input" margin of 4px and thus moves the dropdown up.
2014-10-30 16:26:13 +02:00
Bjørn Johansen
d1c19eb012
Added the formatMatches string
2014-10-29 22:36:54 +01:00
Bjørn Johansen
3a9896dc4b
Replaced nonexistent locale "no" with "nb" (Norwegian Bokmål). Added space before ellipsis for correct punctuation.
2014-10-29 22:13:48 +01:00
Michael Prentice
9ff939b534
Updated AngularJS link to HTTPS
...
HTTPS everywhere
2014-10-29 12:45:07 -04:00
Michael Prentice
fd9006047c
Updated link for AngularUI
...
They have deprecated the original ui-select2 directive in favor of the new and better supported ui-select directive. This happened a couple weeks ago.
2014-10-29 12:41:03 -04:00
Andrius Stonys
a35188cb00
Add padding to select2 container displayed above
...
Added padding to ".select2-search" container instead of margin for ".select2-search input". This fixes bug of "#select2" movement when resizing page.
Steps to reproduce the bug:
- open select2 so it appears above the input
- resize the window
Actual results:
- #select2-drop moves up by 4px
Expected results:
- #select2-drop stays in same place
2014-10-29 15:45:03 +02:00
Kevin Brown
dd323687f3
Merge pull request #2364 from joshuajonah/master
...
Stopped refresh to top when `closeOnSelect: false`
2014-10-24 18:27:25 -04:00
Valdas Petrulis
c1f338cfbf
Dont update the results if the term hasn't changed.
...
https://github.com/ivaynberg/select2/issues/2751
2014-10-23 10:04:39 +03:00
Valdas Petrulis
0cc0ac43f5
Fixed not to break use case: setting the new value after someone was just searching with a different value
...
https://github.com/ivaynberg/select2/issues/2751
2014-10-22 16:34:28 +03:00
Valdas Petrulis
03a15e070b
After clearSearch nextSearchTerm is not cleared
...
https://github.com/ivaynberg/select2/issues/2753
2014-10-21 12:42:28 +03:00
Kevin Brown
5a184921b6
Merge pull request #2726 from KayLeung/patch-1
...
Fixes results count in accessible text
2014-10-16 17:41:22 -04:00
Kevin Brown
30ab851142
Merge pull request #2747 from arthur-peka/master
...
fixing minor errors e.g. redefined variable
2014-10-16 10:40:44 -04:00
Arthur
35f706afbd
fixing minor errors e.g. redefined variable
2014-10-16 14:27:19 +03:00
Kevin Brown
ea266346be
Merge pull request #2665 from bor0/master
...
Items with spaces can be added infinite times on multiselects
2014-10-13 20:39:17 -04:00
od3n
2afc930a12
updated Indonesian translation
2014-10-11 10:33:22 +08:00
od3n
de5fe02f5e
updated Malay translation
2014-10-11 10:32:31 +08:00
Kevin Brown
073f4cb087
Merge pull request #2728 from demkalkov/master
...
'document.body' instead of 'body' selector
2014-10-10 12:05:26 -04:00
Dementiy Kalkov
e716ad01e1
'document.body' instead of 'body' selector
2014-10-10 13:32:58 +04:00
Kay.L
b7a7dd064e
Fixes results count in accessible text
...
Only counts the selectable items in the list. (filter out selected item)
2014-10-09 13:36:00 +08:00
Kevin Brown
eb0b9ff731
Merge pull request #2690 from marcelod/patch-1
...
Update Brazilian Portuguese translation
2014-10-08 21:24:14 -04:00
Kevin Brown
c1df0aa942
Merge pull request #2702 from dgroux/master
...
allow formatSelection to return a jQuery object
2014-10-08 21:12:01 -04:00
Boro Sitnikovski
8644ccb68b
Items with spaces can be added infinite times on multiselects
...
Add optional parameter transformVal that allows the user to define transformation for splitVal
Example demos:
(Infinite spaces, default transformVal):
http://jsfiddle.net/DV23t/9/
(No infinite spaces, transformVal = function (x) { return x; }):
http://jsfiddle.net/DV23t/12/
2014-10-08 23:28:41 +02:00
Kevin Brown
08ee57a03c
Merge pull request #2720 from josmardias/fix-ie8-ie9
...
Fixing IE8 and IE9 issues on select2#3.5.1
2014-10-07 12:25:56 -04:00
Vitor Oliveira
4955be239d
Testing if the object exists before use it
...
It's necessary to make the code compatible with IE8 and IE9.
2014-10-07 13:07:58 -03:00
Dylan Roux
d385dc512e
allow formatSelection to return a jQuery object
2014-09-26 15:14:19 +02:00
Kevin Brown
c5c42eaf72
Merge pull request #2695 from junhanamaki/master
...
allow markups of subsequent formatLoadMore message
2014-09-25 16:45:59 -04:00
Kevin Brown
2b90de5012
Merge pull request #2679 from r0mille/master
...
fixes cutoff for bottom option when selecting with keyboard
2014-09-25 16:42:23 -04:00
junhanamaki
68070d0cac
allow markups of subsequent formatLoadMore message
...
- setting message with html instead of text
- invoking escapeMarkup method before setting message
2014-09-23 20:48:18 +01:00
Marcelo Diniz
759b01926b
Update Brazilian Portuguese translation
...
Add row `formatAjaxError` and update when `formatInputTooShort` value equal to 1
2014-09-18 13:27:53 -03:00