1
0
mirror of synced 2024-11-26 06:46:04 +03:00
Commit Graph

1302 Commits

Author SHA1 Message Date
Kartik Visweswaran
47c1538e4e Yii 2.0 widget implementation
Updated implementation for Yii 2.0
2014-04-26 11:59:17 +05:30
Justin Lei
f9be3c039c Issue 234368 for the Chromium project is fixed now (Issue #1099) 2014-04-23 17:22:58 -07:00
Justin Lei
6156abc2a8 Cleanup jQuery DOM elements on destroy 2014-04-23 17:14:13 -07:00
Kevin Brown
514988ee54 Merge pull request #2282 from dandv/patch-2
Mention CDN hosting
2014-04-22 20:52:24 -04:00
Kevin Brown
086f977b9a Merge pull request #2303 from snrmwg/master
Query term in tags function in select2 3.4 #2141
2014-04-22 20:49:22 -04:00
Kevin Brown
2e79f5eb4f Only disable keyboard focusing for touch devices [Fixes #1541]
This fixes the issue [1] by first checking to see if the current
device is a touch device.  The other issue [2] that occured because
of the original fix [3] is now fixed, because the hidden inputs
are always focused by default on non-touch devices.

The code used for detecting touch devices was pulled from
StackOverflow [4].  Information on the reasoning behind this fix
can be found on GitHub [5].

[1]: https://github.com/ivaynberg/select2/issues/1541
[2]: https://github.com/ivaynberg/select2/issues/2223
[3]: d87e93dd45
[4]: http://stackoverflow.com/a/15439809/359284
[5]: https://github.com/ivaynberg/select2/issues/1541#issuecomment-39805859
2014-04-22 20:25:19 -04:00
IliaFours
ffddc48a24 Recalculation dropdown height if dropdownAutoWidth is true 2014-04-22 14:54:36 +03:00
Marc Schneider
42f2acd0aa Query term in tags function in select2 3.4 #2141 2014-04-21 00:18:19 +02:00
Kevin Brown
79e031fbdf Merge pull request #2241 from zocoi/master
Trap touch events within container
2014-04-18 18:52:40 -04:00
Kevin Brown
435b5369d8 Merge pull request #2293 from jorupp/master
Fix issue syncing CSS classes in IE9/10
2014-04-18 11:42:38 -04:00
jorupp
632595f530 Fix issue syncing CSS classes in IE9/10 2014-04-15 16:36:24 -05:00
Kevin Brown
00716adf65 Merge pull request #2286 from interestincode/patch-1
Update select2.js, fixes #781
2014-04-15 11:26:44 -04:00
Eduardo Matos
22d503f846 Avoid call 'positionDropdown' function if the container it's closed 2014-04-15 10:51:23 -03:00
interestincode
7c9c9612b5 Update select2.js
As suggested in https://github.com/ivaynberg/select2/issues/781#issuecomment-38979100, significantly improves search speed, going from unusable to snappy on IE on a list of almost 10,000 items with a custom query limiting it to 25 results. Uses 'uni range + named function' from http://jsperf.com/diacritics/18
2014-04-15 02:08:16 -07:00
Kevin Brown
24f4bbfefb Merge pull request #2257 from mkurz/title_fix
Copy title attribute from original element
2014-04-14 22:05:37 -04:00
Kevin Brown
f48df6f369 Merge pull request #2153 from 2color/patch-1
Fix a typo in the docs.
2014-04-14 21:30:47 -04:00
Kevin Brown
3cc3e6a4f3 Merge pull request #2281 from dandv/patch-1
List Bootstrap 3 and Meteor integrations
2014-04-14 18:17:58 -04:00
Dan Dascalescu
143341b0a2 Mention CDN hosting 2014-04-14 14:51:45 -07:00
Dan Dascalescu
759ccc93b6 List Bootstrap 3 and Meteor integrations
Since [bootstrap-tagsinput](https://github.com/TimSchlechter/bootstrap-tagsinput/issues/123) appears to be abandoned, Select2 seems like the best choice for Meteor.
2014-04-14 14:39:49 -07:00
Kevin Brown
100266bbb5 Merge pull request #2274 from thiagotalma/patch-1
Update select2_locale_pt-BR.js
2014-04-12 21:48:07 -04:00
Thiago Talma
1a7a218922 Update select2_locale_pt-BR.js
Fix typo
2014-04-12 22:45:54 -03:00
Eduardo Matos
3f43f459e9 Testing if the dropdown is opened before call positionDropdown, on events by resize, scroll and orientation 2014-04-11 14:02:11 -03:00
Kevin Brown
60d74da872 Merge pull request #2225 from davidfstr/fix_empty_placeholder
Allow an empty string to be used as the placeholder title.
2014-04-09 10:59:10 -04:00
Kevin Brown
77afdd899d Merge pull request #2256 from mkurz/xhtml_fix
xhtml compatibility
2014-04-09 07:37:29 -04:00
Matthias Kurz
bdb8840fb4 Copy title attribute from original element 2014-04-09 12:36:43 +02:00
Matthias Kurz
47005ede3a xhtml compatibility 2014-04-09 11:56:31 +02:00
Kevin Brown
8307d76f3e Merge pull request #2239 from antstorm/fix_leaking_clicks_2
Fix for "leaking clicks"
2014-04-08 07:25:39 -04:00
Hung Dao
70be47d84b Merge remote-tracking branch 'upstream/master' 2014-04-07 17:42:57 -07:00
Kevin Brown
45a97881de Merge pull request #2246 from mkurz/css_depth_fix
Css dept-* rules should start with 1 not 0
2014-04-06 19:59:01 -04:00
Matthias Kurz
a6d7ecc273 Css dept-* rules should start with 1 no 0 2014-04-06 17:29:45 +02:00
Hung Dao
534bbff06f trap touchstart touchend events within container 2014-04-03 17:06:08 -07:00
Anthony Dmitriyev
c77e159178 Another solution for clicks triggered on underlying elements 2014-04-03 17:28:13 +03:00
Kevin Brown
0d06066331 Merge pull request #2238 from mkurz/focus-fix
Prevent the cursor from setting it to initial position in IE
2014-04-03 09:01:30 -04:00
Kevin Brown
e801573328 Merge pull request #2236 from mkurz/destroy_fix
.destroy() should destroy all selected select2
2014-04-03 08:47:46 -04:00
Kevin Brown
43a598b372 Merge pull request #2216 from lboynton/fix-search-focus-on-mobile
Fix search focus on mobile
2014-04-03 08:44:45 -04:00
Matthias Kurz
dcabde40c3 Prevent the cursor from setting it to initial position in IE 2014-04-03 12:19:37 +02:00
Matthias Kurz
ddcb61585a .destroy() should destroy all selected select2 2014-04-03 10:59:21 +02:00
Kevin Brown
937aaa1737 Merge pull request #2229 from aanbar/modify_arabic
Added missing letter.
2014-04-02 10:17:07 -04:00
Ahmad Anbar
b163712e66 Added missing letter. 2014-04-02 15:49:08 +03:00
David Foster
3ce3ad7fb0 Allow an empty string to be used as the placeholder title. 2014-04-01 14:22:41 -07:00
Lee Boynton
2d6b74c2ac Also check if search input should be focussed for multiselects 2014-03-31 21:01:06 +01:00
Kevin Brown
df7b7ba95c Merge pull request #2220 from bigmihail/master
Added translation for formatMatches
2014-03-30 11:03:15 -04:00
Mihail
b2c3dbc0ab Added translation for formatMatches
In accordance with changes in the file select2_locale_en.js.template
2014-03-30 13:30:45 +03:00
Kevin Brown
901a5994c3 Merge pull request #2215 from pineapple-thief/pineapple-thief
Update select2.js
2014-03-29 14:09:29 -04:00
Lee Boynton
ed0bae39c9 Check if search should be focused when the dropdown is activated 2014-03-28 14:56:45 +00:00
Lee Boynton
ad21d01693 Check if search input should be focussed when opening 2014-03-28 14:46:41 +00:00
pineapple-thief
70873abe9d Update select2.js
Fixes unpleasant glitch where initializing select2 on select where first input option tag has non-breakable space in innerText causes selected option to be displayed as "undefined" until user changes selection. (i.e. HTML was like <option value>&nbsp;</option>, that's what Rails 3 f.select helper generate by default).
2014-03-28 15:45:38 +11:00
Kevin Brown
cbd2a70dc3 Merge pull request #2203 from jesperronn/simplify-selectors
Reduced 10 level deep nesting of CSS rules. Instead, using the simpler d...
2014-03-23 17:14:35 -04:00
Jesper Rønn-Jensen
7390721038 Reduced 10 level deep nesting of CSS rules. Instead, using the simpler depth-0,-1,-2,etc for adding padding to the result when nested.
Greatly simplifies complexity of expressions and reduces (hopefully) rendering time.

From https://developers.google.com/speed/docs/best-practices/rendering#UseEfficientCSSSelectors
Descendant selectors are inefficient because, for each element that matches the key, the browser must also traverse up the DOM tree, evaluating every ancestor element until it finds a match or reaches the root element.
2014-03-23 21:50:35 +01:00
Kevin Brown
774a0d7765 modified version identifiers in descriptors for release 3.4.6 2014-03-22 22:30:17 -04:00