1
0
mirror of synced 2024-11-22 21:16:10 +03:00
Commit Graph

2055 Commits

Author SHA1 Message Date
Kevin Brown
b819a495aa Added compatibility section
This is the same as the old documentation, it has not been transformed
into a FAQ yet.
2015-09-13 15:36:52 -04:00
Kevin Brown
84d1218751 Added note about incomplete documentation
This adds two notes, one pointing to the old documentation and the other
pointing to the community, for getting extra help if their question is
not answered.
2015-09-13 15:27:34 -04:00
Kevin Brown
bc82856fb6 Document data object format
So far this just documents how <select> elements have their options
converted to a data object.
2015-09-13 11:33:21 -04:00
Kevin Brown
46ab1ebc8d A bunch of questions are missing answers
These will be filled in at a later point in time, hopefully later today.
2015-09-13 11:32:41 -04:00
Kevin Brown
119df9b09f Add questions about the dropdown 2015-09-13 11:31:59 -04:00
Kevin Brown
e9b89b4ac1 Add template for questions without answers 2015-09-13 11:31:34 -04:00
Kevin Brown
e472cb31f0 Finish off the core option answers
These were mostly there before, it was just a matter of moving some of
the answers around.
2015-09-13 11:31:06 -04:00
Kevin Brown
4541d83c5d Updated side navigation
Now most of the links works, not including the ones for sections which
don't exist at the moment.
2015-09-13 11:30:26 -04:00
Kevin Brown
4b5743f22e Merge pull request #3757 from christophano/master
Use apply when calling methods
2015-09-10 08:34:38 -04:00
Chris Rodgers
441fbc2d73 Method called using apply to avoid translating multiple args into single arg. Fixes #3756 2015-09-10 12:05:25 +01:00
Kevin Brown
c502961149 Answers to some of the questions 2015-09-09 12:30:12 -04:00
Kevin Brown
a96ec9d91c Added section for events
Both public jQuery events and internal Select2 events will be
documented.
2015-08-31 21:14:59 -04:00
Kevin Brown
75abd407c8 Continue building out the FAQ
This adds more questions that will eventually get answers. Most of these
questions are already answered either in the current documentation or on
Stack Overflow, so it shouldn't be too difficult to fill out answers for
them.
2015-08-31 20:43:01 -04:00
Kevin Brown
41e4795578 Set up initial page with some questions
Right now this sets up the new FAQ/Options page with most of the
questions for the how to control the selection. Not all of these
questions have answers, most of them weren't moved over, but there are
plans to add detailed answers to all of them.

The questions were aggregated based on common Stack Overflow and IRC
questions, as well as commonly asked things on GitHub.
2015-08-29 19:51:52 -04:00
Kevin Brown
ea074af14c Merge pull request #3717 from P0rnflake/patch-1
Add select2.css to composer generated require.css
2015-08-29 16:23:11 -04:00
P0rnflake
e3920eae44 Add Stylesheet to composer generated require.css 2015-08-28 10:49:12 +02:00
Kevin Brown
eb47f638d3 Merge pull request #3698 from jbrown/patch-1
Fix typo
2015-08-25 11:35:09 -04:00
Kevin Brown
89858c418d Implement Dropdown.bind
This closes https://github.com/select2/select2/issues/3239
2015-08-21 20:51:42 -04:00
Kevin Brown
73e50ae92c Hide messages when loading results
This closes https://github.com/select2/select2/issues/3343
2015-08-21 20:49:01 -04:00
Kevin Brown
b69dd827d0 Recompile dist 2015-08-21 19:19:06 -04:00
Kevin Brown
a86c2e709f Add tests for 4958961 2015-08-21 19:17:00 -04:00
Kevin Brown
49589611ee Handle null being returned from createTag
The `createTag` option does allow for `null` to be returned if a
tag should not be created. The tokenizer previously didn't support
this, so the tokenizer should be able to handle this case. Previously
it would trigger an exception, because the tokenizer would pass back
a null value to the select function.

This also fixes what would have been a potential bug where even if a
tag was not created, the term would still have been sliced at the
location of the token. This allows for tokenizers to have special
cases when tokenizing the term, such as not splittting a token
if it is in the middle of a quoted string.

This closes https://github.com/select2/select2/issues/3593
This closes https://github.com/select2/select2/pull/3591
2015-08-21 19:12:13 -04:00
Kevin Brown
d9c1cbc976 Add tests for d08cb87 2015-08-21 18:32:10 -04:00
Stretch
d08cb874f9 Trigger the select event in the tokenizer
This closes https://github.com/select2/select2/issues/3325.
This closes https://github.com/select2/select2/pull/3453.
2015-08-21 18:30:35 -04:00
Kevin Brown
7166935958 Always pass in a blank object for arguments
This fixes an issue where preventing the default behaviour on some
events would trigger an exception. This was bacause the event relay
was expecting there to always be an object passed in for arguments,
and this wasn't always the case.

This closes https://github.com/select2/select2/issues/3431.
2015-08-21 17:43:50 -04:00
Kevin Brown
8722ae2c81 Compile dist 2015-08-21 14:52:01 -04:00
Kevin Brown
66ae2ad1d5 Fix input event in IE
This closes https://github.com/select2/select2/issues/3300
This closes https://github.com/select2/select2/pull/3677
2015-08-21 14:46:50 -04:00
Justin Brown
dac09005ad Fix typo 2015-08-20 13:15:57 -04:00
Kevin Brown
ab14751507 Merge pull request #3692 from Velocity-/patch-1
Fix improper grammar in Dutch i18n file
2015-08-20 11:01:41 -04:00
Bart Pelle
eee70fd9af Fix improper grammar in Dutch i18n file
Grammar is incorrect when maximum is 1, 'kunnen' should be 'kan' in that case.
2015-08-20 09:21:52 +02:00
Kevin Brown
1587708826 Merge pull request #3507 from RyanDale/issue-3503
Fixes #3503: Removes redundant 'open' event trigger
2015-08-19 22:44:30 -04:00
Kevin Brown
989bd02649 Rebuilt dist 2015-08-19 21:39:21 -04:00
Kevin Brown
ea538819c3 Merge pull request #3605 from molily/master
Multiple select, search field: Removes padding on mobile Safari.
2015-08-19 21:25:01 -04:00
Kevin Brown
68d068f1d2 Prevent selections from being removed when disabled
This prevents selections from being removed when the container is
disabled. This stops any click events that are triggered on the
remove button, so the remove handler won't be triggered at all.

This closes https://github.com/select2/select2/pull/3636.
2015-08-19 21:01:19 -04:00
Kevin Brown
7d8f86cbf8 Add tests for removing a selection when disabled
These tests should fail because a selection can be removed even
though the container is disabled. This is because the only thing
preventing selections from being removed was the CSS which hid the
remove buttons when the container was disabled.
2015-08-19 20:59:39 -04:00
Kevin Brown
671f5a2ce2 Fix memory leak in AttachBody
The `$dropdownContainer` variable wasn't being cleaned up when
Select2 was destroyed, which was causing a memory leak.

This closes https://github.com/select2/select2/issues/3559.
This closes https://github.com/select2/select2/pull/3603.
2015-08-19 20:07:51 -04:00
Kevin Brown
7bc9387de2 Merge pull request #3637 from wobbie/master
fix: modify announcement 4.0 doc Tags example
2015-08-19 20:02:37 -04:00
Kevin Brown
700f7908fc Merge pull request #3654 from wdietz/master
Fix IE 8-11 not showing Chinese characters
2015-08-19 10:26:10 -04:00
Kevin Brown
716e79b7d4 Lock Firefox builds to Linux
Right now Sauce Labs is not triggering builds for Firefox, and that
is causing the automated testing to fail. This might be because
there is no "latest" version logged for Firefox on Sauce Labs, but
it could also be becuase we aren't giving it a platform to look for.

This was also done for Opera as right now Sauce Labs is running
tests on Linux anyway.
2015-08-12 11:14:00 -04:00
Kevin Brown
5021356751 Update grunt-saucelabs version 2015-08-12 10:19:50 -04:00
Kevin Brown
47895b1e45 Merge pull request #3565 from rockshandy/issue-3564
use merged data instead of existingData for ArrayAdapter
2015-08-11 18:22:40 -04:00
Kevin Brown
81a670bd62 Merge pull request #3667 from nikolas/patch-1
Use new travis infrastructure
2015-08-10 13:50:14 -04:00
Nik Nyby
e8f4032724 Use new travis infrastructure 2015-08-10 11:15:40 -04:00
Kevin Brown
dd2990adea Skip focus test on IE 8
I can't reproduce this test failure on and IE 8 virtual machine, so
I'm just going to skip it on IE 8.
2015-08-09 21:00:48 -04:00
Kevin Brown
4a1290b4e9 Recompiled dist 2015-08-09 17:47:05 -04:00
Kevin Brown
8a26de7c60 Merge pull request #3665 from AnthonyDiSanti/master
Fixes typos in docs
2015-08-09 17:08:04 -04:00
Anthony DiSanti
4a5d753112 Fixes typos in docs
* Updates Disabled Mode docs
* Updates Disabled Results docs
2015-08-09 14:19:39 -04:00
Wayne Dietz
d37d6d6cac Fix issue in IE 8-11 that prevents typing characters that require multiple key presses to produce a single glyph. 2015-08-06 10:17:03 -05:00
Kevin Brown
512269fa40 Merge pull request #3643 from TrySound/npm-files
Add npm files filter
2015-08-04 09:27:47 -04:00
Bogdan Chadkin
acfeaaa015 Add npm files filter 2015-08-04 16:12:52 +03:00