1
0
mirror of synced 2024-11-25 14:26:03 +03:00
Commit Graph

1422 Commits

Author SHA1 Message Date
Kevin Brown
68e9159b3c Merge pull request #3687 from taf2/patch-1
!- maybe means != ?
2015-08-19 15:05:14 -04:00
Todd
61316a1351 !- maybe means != ?
Definitely a syntax error perhaps != was the intention?
2015-08-19 15:04:14 -04:00
Kevin Brown
2caa45ba98 Added debug option for migration notices
The `debug` option was chosen because the option also exists in
Select2 4.0.0 and provides similar warnings when configurations
are detected that are known to cause issues in Select2.

Warnings will be displayed in the console if the debug option is
enabled. As there are a lot of options that have been renamed in
Select2 4.0.0, using the older version of the options will trigger
a warning in Select2 3.5.3. Options which were also removed and
have clear migration paths will also trigger a warning with the
link to the relevant documentation.

Options which have been renamed in Select2 4.0.0 are now supported
in Select2 3.5.3, allowing people to migrate their installations
over to the new options before making the final switch.

This closes https://github.com/select2/select2/issues/3483.
2015-06-28 20:43:08 -04:00
Daniel Vinntreus
95e6f80619 Avoid error on empty search result in MultiSelect
This fixes https://github.com/select2/select2/issues/2942.
2015-06-28 18:14:17 -04:00
Kevin Brown
2eea4a486a Merge pull request #3186 from colemanw/offFocus
Ensure focus event is unbound after widget is destroyed
2015-04-02 12:05:48 -04:00
Coleman Watts
1afc8d9f27 Ensure focus event is unbound after widget is destroyed 2015-03-23 17:54:40 -04:00
Kevin Brown
3a10bd997a Merge pull request #2846 from colemanw/patch-2
Fix bug where elements in select2 drop cannot be focused
2015-01-23 20:14:09 -05:00
Kevin Brown
89b2e3fa81 Merge pull request #2925 from PerformanceHorizonGroup/master
Properly off() the events in the "select2" namespace
2015-01-15 07:52:05 -05:00
gkostov
19c0d3c0b5 Properly off() the events in the "select2" namespace
the dot, denoting a namespace and not an event name, was missing
2015-01-15 14:23:34 +02:00
Kevin Brown
da4789c61b Merge pull request #2890 from asaf/patch-1
Update README.md
2015-01-09 11:48:16 -05:00
Kevin Brown
03c4499752 Updated README with new documentation location
The documentation for the current version is still at http://select2.github.io/select2/.

Once 4.0 moves on a little further, we will switch these links to https://select2.github.io/.
2015-01-05 17:33:02 -05:00
Asaf Shakarchi
a343ed9962 Update README.md
Ember JS component link.
2014-12-31 12:50:30 +02:00
Kevin Brown
72bb1898d3 Merge pull request #2882 from mcagl/patch-1
Little typo
2014-12-22 20:30:06 -05:00
Mark
7f2a723651 Little typo 2014-12-22 23:47:13 +01:00
Kevin Brown
ff292d7a66 Merge pull request #2875 from Casecommons/master
Fix accessible aria activedescendant attribute
2014-12-19 11:56:22 -05:00
Jeremy Leakakos and Jimmy Chao
db1d18fc5d Fix accessible aria activedescendant attribute
Remove aria-activedescendant attribute after the dropdown is closed,
to make sure the aria properties is vaild for aduit-tool
[https://code.google.com/p/accessibility-developer-tools/wiki/AuditRules#AX_ARIA_04:_ARIA_state_and_property_values_must_be_valid]
2014-12-17 15:23:54 -05:00
Kevin Brown
086ce8c712 Merge pull request #2867 from Decagon/patch-1
Update copyright year
2014-12-16 16:15:12 -05:00
Decagon
e524a85ad0 Update copyright year 2014-12-16 17:10:01 -04:00
Kevin Brown
874390d5ab Merge pull request #2866 from LeoUnglaub/master
Fixing issue #2864
2014-12-16 12:56:27 -05:00
Leo Unglaub
09d3e94ada Fixing issue #2864
If you call element.attr ('style') with Zepto and
there is NO inline style, you get back the
CSS2Properties object. In jQuery you would get
nothing.

To avoid calling split in an object instead of a
string we should check if we really have a string.

Signed-off-by: Leo Unglaub <leo@leo-unglaub.net>
2014-12-16 18:36:03 +01:00
Kevin Brown
8651dac4af Merge pull request #2848 from tedliang/master
Fix performance issue with setVal on MultiSelect
2014-12-11 14:56:27 -05:00
Kevin Brown
620cbc2b94 Merge pull request #2858 from nguyenchiencong/master
fix vietnamese grammar mistakes
2014-12-11 10:56:39 -05:00
Nguyen Chien Cong
2689b21286 fix vietnamese grammar mistakes 2014-12-11 11:17:16 +07:00
Kevin Brown
a11cfdd11c Merge pull request #2838 from RustyToms/do_not_display_hidden_input
don't display a hidden input on destroy
2014-12-10 15:33:04 -05:00
Ted Liang
5c9e81053e fix buildChangeDetails for MultiSelect 2014-12-10 14:02:30 +11:00
Ted Liang
2ee7fadfce improves selectAll performance in MultiSelect2 2014-12-09 16:15:51 +11:00
colemanw
a732063f1b Fix bug where elements in select2 drop cannot be focused
This chrome workaround had the undesired side-effect of preventing anything in the select2 drop from being focused (affected single but not multi selects for some reason). Making the condition more specific to the actual problem being worked around solves this.
2014-12-05 17:05:59 -05:00
Jonathan Toms
3acc0c4e58 don't display a hidden input on destroy 2014-12-01 22:45:34 -05:00
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