1
0
mirror of synced 2024-11-23 13:36:01 +03:00
Commit Graph

2381 Commits

Author SHA1 Message Date
Kevin Brown
c8d1c312c8 Merge pull request #4670 from josa42/add-license-to-bower-json
Add license to bower.json
2016-12-29 19:11:37 -05:00
Stephen A. Wilson
0a67287c7a Answer question about using HTML in selection template
This closes https://github.com/select2/select2/pull/4606.
2016-12-29 19:09:28 -05:00
Nimit Suwannagate
625fc78ee6 Add errorLoading translation of Thai language.
This closes https://github.com/select2/select2/pull/4521.
2016-12-29 19:01:37 -05:00
Leandro Regueiro
f3788e2cda Simplify Danish and Arabic translations
This closes https://github.com/select2/select2/pull/4547.
2016-12-29 18:59:44 -05:00
Leandro Regueiro
8fcc6202c3 Update Galician translation 2016-12-29 18:59:15 -05:00
mitja-p
8e6422c570 Add Slovene translation
This closes https://github.com/select2/select2/pull/4576.
2016-12-29 18:55:49 -05:00
niki7har
4df965219e Update de.js
The german errorLoading message was missing.

This closes https://github.com/select2/select2/pull/4711.
This closes https://github.com/select2/select2/pull/4591.
2016-12-29 18:48:18 -05:00
Sági György
7d1d133523 i18n hu.js update. Added errorLoading property.
This closes https://github.com/select2/select2/pull/4724.
2016-12-29 18:46:29 -05:00
Kevin Brown
1167bace78 Added tests for case insensitive tag matching
This adds a single test for cb9a904578.
2016-12-29 18:29:04 -05:00
Yaron Uliel
cb9a904578 Make tags matching case insensitive
This closes https://github.com/select2/select2/issues/3566
This closes https://github.com/select2/select2/pull/4509
2016-12-29 18:26:19 -05:00
Pekka Pöyry
124087ae2a Add missing finnish translations 2016-12-22 15:03:12 +02:00
Denis Chenu
3a1603ce03 typo in ISSUE_TEMPLATE.md
This pull request includes a

- [ ] Bug fix
- [ ] New feature
- [ ] Translation
- [x] Documentation

The following changes were made

- typo in ISSUE_TEMPLATE.md : ste**p**s

No ticket
2016-11-24 17:58:38 +01:00
Josa Gesell
321a2460eb Add license to bower.json 2016-11-03 11:23:50 +01:00
sedrubal
69600667e6
Fix typos in docs 2016-10-30 17:22:31 +01:00
sedrubal
793811757b
Docs for: What should the results returned to Select2 look like? 2016-10-30 17:18:44 +01:00
Kevin Brown
563198a4a2 Merge pull request #4597 from jpic/patch-1
Add django-autocomplete-light to integrations
2016-09-23 11:20:16 -04:00
James Pic
3f874a1db4 Add django-autocomplete-light to integrations 2016-09-22 00:08:19 +02:00
Kevin Brown
062c6c3af5 Merge pull request #4538 from luciano-jr/improve-documentation
Update select.html
2016-08-18 23:00:50 -04:00
Luciano Jr
ed5707a3d4 Update select.html 2016-08-17 17:10:47 +01:00
Kevin Brown
3f8492b62f Merge pull request #4441 from uestla/docs-1
docs: more appropriate terminology ("highlight" -> "focus")
2016-06-24 09:17:24 -04:00
Petr Kessler
6f21865d8a docs: more appropriate terminology ("highlight" -> "focus") 2016-06-24 09:54:06 +02:00
Kevin Brown
d2d7a9c381 Merge pull request #4435 from ZuBB/patch-1
fix(docs): corrected mistype
2016-06-21 10:00:56 -04:00
Vasyl Zuzyak
3a67616c2f fix(docs): corrected mistype 2016-06-21 16:57:19 +03:00
Nino Schoch
294e7e664d Fixed form focus lost 2016-06-16 13:45:21 +02:00
Kevin Brown
083c2112df Merge pull request #4389 from anasshekhamis/master
Correct typo in "options" page
2016-06-11 19:47:14 -04:00
Anas Shekhamis
ffe780db53 Correct typo in "options" page
Correct a typo in the "options" page, "Data Adapters" section, "Do the
id properties have to be strings?" part.
">select<" to "<select>"
2016-05-29 12:36:00 +03:00
Kevin Brown
566c7846fb Update version identifiers for 4.0.3 2016-05-26 21:16:06 -04:00
Kevin Brown
24a8d73a99 Recompile dist 2016-05-26 20:53:18 -04:00
Kevin Brown
2343fd4ae4 Clarify the Bootstrap docs notice with the dropdownParent option
This closes https://github.com/select2/select2/pull/4253.
2016-05-26 20:52:37 -04:00
Kevin Brown
8bc4f5d41d Added createTag code samples
This lays down part of the path for
https://github.com/select2/select2/issues/4023 as well as
https://github.com/select2/select2/issues/3974.
2016-05-26 20:50:12 -04:00
Harry
7eab29e271 Added Greek (el) translation
Translated English (en) language file to Greek (el).

This closes https://github.com/select2/select2/pull/4139
This closes https://github.com/select2/select2/pull/4146
2016-05-26 20:36:22 -04:00
Kevin Brown
7505347a69 Merge pull request #4379 from petruavram/master
[Docs] Add favicon
2016-05-26 20:25:39 -04:00
Petru-Vasile Avram
d34bff5797 Add favicon
I used the logo image on the site to generate a favicon using
[Real
Favicon Generator tool](http://realfavicongenerator.net/).
2016-05-25 10:25:47 +03:00
Kevin Brown
a74547aaa7 Migrate from expect to assert.expect
After we upgraded to QUnit 1.23.1, we gained support for
assert.expect(). This allows us to guard against any race conditions
within tests, because now expect() will be linked to the specific test
instead of the current running test.
2016-05-23 23:38:45 -04:00
Kevin Brown
2805fa7aa4 Add tests for detecting added and removed options
This adds tests for ea79a197e0.
2016-05-23 23:32:02 -04:00
Kevin Brown
ea79a197e0 Select2 now detects added and removed options
Select2 will now automatically update the selection if there are options
added to or removed from the DOM within the `<select>` element. This is
supported in all browsers except for Internet Explorer 8. Internet
Explorer 8 does not support the DOM mutation events which were added in
Internet Explorer 9, and it does not support mutation observers which
are the recommended way of handling this in modern browsers.

DOM mutation events also trigger for the `<select>` itself when it is
pulled from the DOM, so we need to filter these out within the event
handler.

Despite supporting mutation observers, we cannot accurately detect if
the removed option was selected at one time or another, so we need to
always re-pull the selection when an element is deleted.

This closes https://github.com/select2/select2/issues/4248
This builds upon https://github.com/select2/select2/pull/4249
2016-05-23 23:31:17 -04:00
Kevin Brown
a75482fd30 Upgrades QUnit to 1.23.1
This was required for us to get assert.async() support within tests, as
well as assert.expect() support. This was required because we need them
for multiple async tests that are coming.
2016-05-23 23:25:13 -04:00
Kevin Brown
99c248cc34 Recompiled dist 2016-05-14 22:34:03 -04:00
Kevin Brown
4b9e02f022 Corrected check for opening the dropdown
This corrects the check that was used when the dropdown was opened, so
the results would be immediately rendered instead of delaying the
loading. Previously it would delay the immediate load but immediately
load the results when the search term was emptied.

This closes https://github.com/select2/select2/issues/4191
This closes https://github.com/select2/select2/pull/4192
This closes https://github.com/select2/select2/pull/4202
2016-05-14 22:26:56 -04:00
Kevin Brown
481c43883e selectOnClose now properly works with closeOnSelect
Previously we hacked around the infinite loop between closeOnSelect and
selectOnClose by attempting to detect what event was being triggered
without knowing what event triggered it. Now we properly relay the
Select2 event and the jQuery event that triggered the select or unselect

This closes https://github.com/select2/select2/issues/4012
2016-05-14 22:14:20 -04:00
Kevin Brown
ad8447cc35 Add a new _type parameter for the first event argument
This will include the event type in the _type property, so it can be
accessed within the event handlers if it's not normally passed in. This
should not conflict with any existing handlers, and this should not be
considered a public property on event arguments.
2016-05-14 22:01:42 -04:00
Kevin Brown
acd3306192 Added tests for focusing results
This adds three tests related to focusing selected items in the results.
The tests are for e897d00 and 9f58128.
2016-05-14 21:05:30 -04:00
Kevin Brown
9f581285d8 Renamed focusFirstItem method
This renames the `focusFirstItem` method to `highlightFirstItem`, which
better reflects what is actually happening. This also ensures that the
highlight is visible when it is moved by calling
`ensureHighlightVisible`.

This closes https://github.com/select2/select2/issues/3479
This closes https://github.com/select2/select2/pull/4238
2016-05-14 21:05:14 -04:00
Alexander Leonov
e897d008a6 Fixed infinite scrolling issue using down key. 2016-05-14 21:04:31 -04:00
Nadim Afana
b6f0f3a69e Fixed line is too long warning for jquery-calls.js 2016-05-08 19:51:46 -07:00
Nadim Afana
8663d1bf0b Fixed jshint warnings 2016-05-08 19:45:58 -07:00
Nadim Afana
5fd270c9e4 Added an integration test to ensure issue does not come back in the future. 2016-05-08 19:32:41 -07:00
Nadim Afana
fba261c670 Fixed EOL to Unix format. 2016-05-06 14:54:13 -07:00
Nadim Afana
16e26310e1 Fixed more indentation issues. 2016-05-06 12:28:49 -07:00
Nadim Afana
6e9657105b Fixed indentation. 2016-05-06 12:23:58 -07:00