1
0
mirror of synced 2024-11-24 05:46:09 +03:00
Commit Graph

2142 Commits

Author SHA1 Message Date
Kevin Brown
ed6eb4ff92 Dropped old js files 2014-10-21 21:43:57 -04:00
Kevin Brown
0bc56a922b Linted tests 2014-10-21 21:43:57 -04:00
Kevin Brown
aebc7ce0d2 Added very basic jshint config 2014-10-21 21:43:57 -04:00
Kevin Brown
114732ec25 Broke out a base data adapter
This should allow us to create a basic interface that all adapters
must follow.
2014-10-21 21:43:57 -04:00
Kevin Brown
08ac13d510 Two spaces indentation for tests 2014-10-21 21:43:57 -04:00
Kevin Brown
5a17226ba6 Minify assets 2014-10-21 21:43:57 -04:00
Kevin Brown
0f30667f01 Added very basic AJAX adapter 2014-10-21 21:43:57 -04:00
Kevin Brown
cbc2d2f3ec Trigger events when the dropdown opens and closes 2014-10-21 21:43:57 -04:00
Kevin Brown
315b1b3c12 Added array adapter
This should add support for dynamically generated array data that
still works with a basic `<select>` element.
2014-10-21 21:43:57 -04:00
Kevin Brown
3e05e32eda Small changes in preparation for more adapters 2014-10-21 21:43:57 -04:00
Kevin Brown
d57f8b2203 Clicking on a selected option triggers an unselect event 2014-10-21 21:43:57 -04:00
Kevin Brown
94b460f930 Limit the explicit coupling between adapters 2014-10-21 21:43:57 -04:00
Kevin Brown
0081716841 Header and footer decorators
Added examples of header and footer decorators.
2014-10-21 21:43:57 -04:00
Kevin Brown
f82202036f Added example
People have asked about getting the multiple selection container
to show for a single selection.  This is a basic example that shows
that it could easily be done now.
2014-10-21 21:43:57 -04:00
Kevin Brown
14d3d99868 Basic multiple select implementation 2014-10-21 21:43:57 -04:00
Kevin Brown
1197960a4e Add proof-of-concept decorator for clearing 2014-10-21 21:43:57 -04:00
Kevin Brown
a25883c659 Add travis
Travis can't be enabled unless we put a minimal file on the `master`
branch.
2014-10-21 21:43:57 -04:00
Kevin Brown
792133ce5c Added Utils.Decorate and tests
This adds decorator support in a very basic way, but enough that
it doesn't take a lot of effort to get it implemented.

This also starts work on splitting things out for theming.
2014-10-21 21:43:56 -04:00
Kevin Brown
2ca14517bb Add classes to results options 2014-10-21 21:43:56 -04:00
Kevin Brown
01c3dc5886 Basic dropdown is in place 2014-10-21 21:43:56 -04:00
Kevin Brown
ae57cf6460 More work on rendering
Switched all of the divs to spans, as the container should not be
a block by default.
2014-10-21 21:43:56 -04:00
Kevin Brown
297a06f8d4 Working on rendering everything 2014-10-21 21:43:56 -04:00
Kevin Brown
06e195b025 Work on the AMD scaffolding
This will make it far easier to ensure that components are in their
own modules as well as make it possible to have custom builds of
Select2.
2014-10-21 21:43:56 -04:00
Igor Vaynberg
c0d9316ce2 clean up playground 2014-10-21 21:43:56 -04:00
Igor Vaynberg
bb63555ab2 mobile playground and some wip on architecture 2014-10-21 21:43:56 -04:00
Igor Vaynberg
68f91c3f1b added footer extension 2014-10-21 21:43:56 -04:00
Igor Vaynberg
08af2fb629 decorators idea 2014-10-21 21:43:56 -04:00
Igor Vaynberg
76933017bf out with the old 2014-10-21 21:43:56 -04: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
Kevin Brown
bfaaf8e6e5 Merge pull request #2674 from LuisGP/patch-2
Update select2_locale_es.js
2014-09-11 19:15:26 -04:00
romille
633d4e6b4b fixes cutoff for bottom option when selecting with keyboard 2014-09-11 17:45:59 -04:00