select2-rails 3.5.7 → 3.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/assets/images/select2-spinner.gif +0 -0
- data/app/assets/images/select2.png +0 -0
- data/app/assets/images/select2x2.png +0 -0
- data/app/assets/javascripts/select2.js +76 -43
- data/app/assets/javascripts/select2_locale_ar.js +0 -0
- data/app/assets/javascripts/select2_locale_az.js +18 -0
- data/app/assets/javascripts/select2_locale_bg.js +0 -0
- data/app/assets/javascripts/select2_locale_ca.js +0 -0
- data/app/assets/javascripts/select2_locale_cs.js +0 -0
- data/app/assets/javascripts/select2_locale_da.js +0 -0
- data/app/assets/javascripts/select2_locale_de.js +3 -2
- data/app/assets/javascripts/select2_locale_el.js +0 -0
- data/app/assets/javascripts/select2_locale_es.js +0 -0
- data/app/assets/javascripts/select2_locale_et.js +0 -0
- data/app/assets/javascripts/select2_locale_eu.js +0 -0
- data/app/assets/javascripts/select2_locale_fa.js +0 -0
- data/app/assets/javascripts/select2_locale_fi.js +0 -0
- data/app/assets/javascripts/select2_locale_fr.js +2 -2
- data/app/assets/javascripts/select2_locale_gl.js +0 -0
- data/app/assets/javascripts/select2_locale_he.js +0 -0
- data/app/assets/javascripts/select2_locale_hr.js +0 -0
- data/app/assets/javascripts/select2_locale_hu.js +0 -0
- data/app/assets/javascripts/select2_locale_id.js +0 -0
- data/app/assets/javascripts/select2_locale_is.js +0 -0
- data/app/assets/javascripts/select2_locale_it.js +0 -0
- data/app/assets/javascripts/select2_locale_ja.js +0 -0
- data/app/assets/javascripts/select2_locale_ka.js +0 -0
- data/app/assets/javascripts/select2_locale_ko.js +0 -0
- data/app/assets/javascripts/select2_locale_lt.js +0 -0
- data/app/assets/javascripts/select2_locale_lv.js +0 -0
- data/app/assets/javascripts/select2_locale_mk.js +0 -0
- data/app/assets/javascripts/select2_locale_ms.js +0 -0
- data/app/assets/javascripts/select2_locale_nl.js +0 -0
- data/app/assets/javascripts/select2_locale_no.js +0 -0
- data/app/assets/javascripts/select2_locale_pl.js +2 -1
- data/app/assets/javascripts/select2_locale_pt-BR.js +0 -0
- data/app/assets/javascripts/select2_locale_pt-PT.js +0 -0
- data/app/assets/javascripts/select2_locale_ro.js +0 -0
- data/app/assets/javascripts/select2_locale_rs.js +0 -0
- data/app/assets/javascripts/select2_locale_ru.js +1 -1
- data/app/assets/javascripts/select2_locale_sk.js +0 -0
- data/app/assets/javascripts/select2_locale_sv.js +0 -0
- data/app/assets/javascripts/select2_locale_th.js +0 -0
- data/app/assets/javascripts/select2_locale_tr.js +0 -0
- data/app/assets/javascripts/select2_locale_uk.js +0 -0
- data/app/assets/javascripts/select2_locale_vi.js +0 -0
- data/app/assets/javascripts/select2_locale_zh-CN.js +0 -0
- data/app/assets/javascripts/select2_locale_zh-TW.js +0 -0
- data/app/assets/stylesheets/select2-bootstrap.css +0 -0
- data/app/assets/stylesheets/select2.css.erb +58 -4
- data/lib/select2-rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MmJhNDhmYTI5M2VkYWU4YWQwOTY2MDEzMmFiMDMyN2I0OWNkZTQyMA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MDkzMzY0MWIwZDIyODM1M2I3ZWRlZWE0ZTdhYjJmYzY4NDE1MWEwNg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Y2UyZWE5YzQ4MTYyMDY5YTczZDNmZGNhOTc5Y2U4Mjg1MTM3YzdjM2QyMzNl
|
|
10
|
+
NDRiYjU2YmE0NWNjYzE4NTY2MTdlNTIwZGQyZjUzZTNkODBkNjYzNDUwYmM5
|
|
11
|
+
OTM3NjYxNGY1MDEwZTA1MTc0YWI0YWY1YzZlM2RhNzkwOGI3MWU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NzM5OTVhZTU5YmI5MTQyZWNlNGFjYjhkZDM4MmMxOGQ4MmI5Y2VlMTJlMDg2
|
|
14
|
+
MzdhNTNhZTk3MmUyZDVhYjY2ZGZmZjAxYzRmMjQwODEzNWQ1MDQzZWM3M2U5
|
|
15
|
+
NWVlOTZkNWJkN2E5MmZlYjQ0Nzg1NjFiYzg5OWM0NTAwNjk1OTQ=
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Copyright 2012 Igor Vaynberg
|
|
3
3
|
|
|
4
|
-
Version: 3.
|
|
4
|
+
Version: 3.5.0 Timestamp: Mon Jun 16 19:29:44 EDT 2014
|
|
5
5
|
|
|
6
6
|
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
|
|
7
7
|
General Public License version 2 (the "GPL License"). You may choose either license to govern your
|
|
@@ -98,7 +98,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
98
98
|
},
|
|
99
99
|
MEASURE_SCROLLBAR_TEMPLATE = "<div class='select2-measure-scrollbar'></div>",
|
|
100
100
|
|
|
101
|
-
DIACRITICS = {"\u24B6":"A","\uFF21":"A","\u00C0":"A","\u00C1":"A","\u00C2":"A","\u1EA6":"A","\u1EA4":"A","\u1EAA":"A","\u1EA8":"A","\u00C3":"A","\u0100":"A","\u0102":"A","\u1EB0":"A","\u1EAE":"A","\u1EB4":"A","\u1EB2":"A","\u0226":"A","\u01E0":"A","\u00C4":"A","\u01DE":"A","\u1EA2":"A","\u00C5":"A","\u01FA":"A","\u01CD":"A","\u0200":"A","\u0202":"A","\u1EA0":"A","\u1EAC":"A","\u1EB6":"A","\u1E00":"A","\u0104":"A","\u023A":"A","\u2C6F":"A","\uA732":"AA","\u00C6":"AE","\u01FC":"AE","\u01E2":"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B","\uFF22":"B","\u1E02":"B","\u1E04":"B","\u1E06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24B8":"C","\uFF23":"C","\u0106":"C","\u0108":"C","\u010A":"C","\u010C":"C","\u00C7":"C","\u1E08":"C","\u0187":"C","\u023B":"C","\uA73E":"C","\u24B9":"D","\uFF24":"D","\u1E0A":"D","\u010E":"D","\u1E0C":"D","\u1E10":"D","\u1E12":"D","\u1E0E":"D","\u0110":"D","\u018B":"D","\u018A":"D","\u0189":"D","\uA779":"D","\u01F1":"DZ","\u01C4":"DZ","\u01F2":"Dz","\u01C5":"Dz","\u24BA":"E","\uFF25":"E","\u00C8":"E","\u00C9":"E","\u00CA":"E","\u1EC0":"E","\u1EBE":"E","\u1EC4":"E","\u1EC2":"E","\u1EBC":"E","\u0112":"E","\u1E14":"E","\u1E16":"E","\u0114":"E","\u0116":"E","\u00CB":"E","\u1EBA":"E","\u011A":"E","\u0204":"E","\u0206":"E","\u1EB8":"E","\u1EC6":"E","\u0228":"E","\u1E1C":"E","\u0118":"E","\u1E18":"E","\u1E1A":"E","\u0190":"E","\u018E":"E","\u24BB":"F","\uFF26":"F","\u1E1E":"F","\u0191":"F","\uA77B":"F","\u24BC":"G","\uFF27":"G","\u01F4":"G","\u011C":"G","\u1E20":"G","\u011E":"G","\u0120":"G","\u01E6":"G","\u0122":"G","\u01E4":"G","\u0193":"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H","\uFF28":"H","\u0124":"H","\u1E22":"H","\u1E26":"H","\u021E":"H","\u1E24":"H","\u1E28":"H","\u1E2A":"H","\u0126":"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I","\uFF29":"I","\u00CC":"I","\u00CD":"I","\u00CE":"I","\u0128":"I","\u012A":"I","\u012C":"I","\u0130":"I","\u00CF":"I","\u1E2E":"I","\u1EC8":"I","\u01CF":"I","\u0208":"I","\u020A":"I","\u1ECA":"I","\u012E":"I","\u1E2C":"I","\u0197":"I","\u24BF":"J","\uFF2A":"J","\u0134":"J","\u0248":"J","\u24C0":"K","\uFF2B":"K","\u1E30":"K","\u01E8":"K","\u1E32":"K","\u0136":"K","\u1E34":"K","\u0198":"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L","\uFF2C":"L","\u013F":"L","\u0139":"L","\u013D":"L","\u1E36":"L","\u1E38":"L","\u013B":"L","\u1E3C":"L","\u1E3A":"L","\u0141":"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L","\u01C7":"LJ","\u01C8":"Lj","\u24C2":"M","\uFF2D":"M","\u1E3E":"M","\u1E40":"M","\u1E42":"M","\u2C6E":"M","\u019C":"M","\u24C3":"N","\uFF2E":"N","\u01F8":"N","\u0143":"N","\u00D1":"N","\u1E44":"N","\u0147":"N","\u1E46":"N","\u0145":"N","\u1E4A":"N","\u1E48":"N","\u0220":"N","\u019D":"N","\uA790":"N","\uA7A4":"N","\u01CA":"NJ","\u01CB":"Nj","\u24C4":"O","\uFF2F":"O","\u00D2":"O","\u00D3":"O","\u00D4":"O","\u1ED2":"O","\u1ED0":"O","\u1ED6":"O","\u1ED4":"O","\u00D5":"O","\u1E4C":"O","\u022C":"O","\u1E4E":"O","\u014C":"O","\u1E50":"O","\u1E52":"O","\u014E":"O","\u022E":"O","\u0230":"O","\u00D6":"O","\u022A":"O","\u1ECE":"O","\u0150":"O","\u01D1":"O","\u020C":"O","\u020E":"O","\u01A0":"O","\u1EDC":"O","\u1EDA":"O","\u1EE0":"O","\u1EDE":"O","\u1EE2":"O","\u1ECC":"O","\u1ED8":"O","\u01EA":"O","\u01EC":"O","\u00D8":"O","\u01FE":"O","\u0186":"O","\u019F":"O","\uA74A":"O","\uA74C":"O","\u01A2":"OI","\uA74E":"OO","\u0222":"OU","\u24C5":"P","\uFF30":"P","\u1E54":"P","\u1E56":"P","\u01A4":"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q","\uFF31":"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R","\uFF32":"R","\u0154":"R","\u1E58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1E5A":"R","\u1E5C":"R","\u0156":"R","\u1E5E":"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S","\uFF33":"S","\u1E9E":"S","\u015A":"S","\u1E64":"S","\u015C":"S","\u1E60":"S","\u0160":"S","\u1E66":"S","\u1E62":"S","\u1E68":"S","\u0218":"S","\u015E":"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T","\uFF34":"T","\u1E6A":"T","\u0164":"T","\u1E6C":"T","\u021A":"T","\u0162":"T","\u1E70":"T","\u1E6E":"T","\u0166":"T","\u01AC":"T","\u01AE":"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U","\uFF35":"U","\u00D9":"U","\u00DA":"U","\u00DB":"U","\u0168":"U","\u1E78":"U","\u016A":"U","\u1E7A":"U","\u016C":"U","\u00DC":"U","\u01DB":"U","\u01D7":"U","\u01D5":"U","\u01D9":"U","\u1EE6":"U","\u016E":"U","\u0170":"U","\u01D3":"U","\u0214":"U","\u0216":"U","\u01AF":"U","\u1EEA":"U","\u1EE8":"U","\u1EEE":"U","\u1EEC":"U","\u1EF0":"U","\u1EE4":"U","\u1E72":"U","\u0172":"U","\u1E76":"U","\u1E74":"U","\u0244":"U","\u24CB":"V","\uFF36":"V","\u1E7C":"V","\u1E7E":"V","\u01B2":"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W","\uFF37":"W","\u1E80":"W","\u1E82":"W","\u0174":"W","\u1E86":"W","\u1E84":"W","\u1E88":"W","\u2C72":"W","\u24CD":"X","\uFF38":"X","\u1E8A":"X","\u1E8C":"X","\u24CE":"Y","\uFF39":"Y","\u1EF2":"Y","\u00DD":"Y","\u0176":"Y","\u1EF8":"Y","\u0232":"Y","\u1E8E":"Y","\u0178":"Y","\u1EF6":"Y","\u1EF4":"Y","\u01B3":"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z","\uFF3A":"Z","\u0179":"Z","\u1E90":"Z","\u017B":"Z","\u017D":"Z","\u1E92":"Z","\u1E94":"Z","\u01B5":"Z","\u0224":"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a","\uFF41":"a","\u1E9A":"a","\u00E0":"a","\u00E1":"a","\u00E2":"a","\u1EA7":"a","\u1EA5":"a","\u1EAB":"a","\u1EA9":"a","\u00E3":"a","\u0101":"a","\u0103":"a","\u1EB1":"a","\u1EAF":"a","\u1EB5":"a","\u1EB3":"a","\u0227":"a","\u01E1":"a","\u00E4":"a","\u01DF":"a","\u1EA3":"a","\u00E5":"a","\u01FB":"a","\u01CE":"a","\u0201":"a","\u0203":"a","\u1EA1":"a","\u1EAD":"a","\u1EB7":"a","\u1E01":"a","\u0105":"a","\u2C65":"a","\u0250":"a","\uA733":"aa","\u00E6":"ae","\u01FD":"ae","\u01E3":"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b","\uFF42":"b","\u1E03":"b","\u1E05":"b","\u1E07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24D2":"c","\uFF43":"c","\u0107":"c","\u0109":"c","\u010B":"c","\u010D":"c","\u00E7":"c","\u1E09":"c","\u0188":"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d","\uFF44":"d","\u1E0B":"d","\u010F":"d","\u1E0D":"d","\u1E11":"d","\u1E13":"d","\u1E0F":"d","\u0111":"d","\u018C":"d","\u0256":"d","\u0257":"d","\uA77A":"d","\u01F3":"dz","\u01C6":"dz","\u24D4":"e","\uFF45":"e","\u00E8":"e","\u00E9":"e","\u00EA":"e","\u1EC1":"e","\u1EBF":"e","\u1EC5":"e","\u1EC3":"e","\u1EBD":"e","\u0113":"e","\u1E15":"e","\u1E17":"e","\u0115":"e","\u0117":"e","\u00EB":"e","\u1EBB":"e","\u011B":"e","\u0205":"e","\u0207":"e","\u1EB9":"e","\u1EC7":"e","\u0229":"e","\u1E1D":"e","\u0119":"e","\u1E19":"e","\u1E1B":"e","\u0247":"e","\u025B":"e","\u01DD":"e","\u24D5":"f","\uFF46":"f","\u1E1F":"f","\u0192":"f","\uA77C":"f","\u24D6":"g","\uFF47":"g","\u01F5":"g","\u011D":"g","\u1E21":"g","\u011F":"g","\u0121":"g","\u01E7":"g","\u0123":"g","\u01E5":"g","\u0260":"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h","\uFF48":"h","\u0125":"h","\u1E23":"h","\u1E27":"h","\u021F":"h","\u1E25":"h","\u1E29":"h","\u1E2B":"h","\u1E96":"h","\u0127":"h","\u2C68":"h","\u2C76":"h","\u0265":"h","\u0195":"hv","\u24D8":"i","\uFF49":"i","\u00EC":"i","\u00ED":"i","\u00EE":"i","\u0129":"i","\u012B":"i","\u012D":"i","\u00EF":"i","\u1E2F":"i","\u1EC9":"i","\u01D0":"i","\u0209":"i","\u020B":"i","\u1ECB":"i","\u012F":"i","\u1E2D":"i","\u0268":"i","\u0131":"i","\u24D9":"j","\uFF4A":"j","\u0135":"j","\u01F0":"j","\u0249":"j","\u24DA":"k","\uFF4B":"k","\u1E31":"k","\u01E9":"k","\u1E33":"k","\u0137":"k","\u1E35":"k","\u0199":"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l","\uFF4C":"l","\u0140":"l","\u013A":"l","\u013E":"l","\u1E37":"l","\u1E39":"l","\u013C":"l","\u1E3D":"l","\u1E3B":"l","\u017F":"l","\u0142":"l","\u019A":"l","\u026B":"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l","\u01C9":"lj","\u24DC":"m","\uFF4D":"m","\u1E3F":"m","\u1E41":"m","\u1E43":"m","\u0271":"m","\u026F":"m","\u24DD":"n","\uFF4E":"n","\u01F9":"n","\u0144":"n","\u00F1":"n","\u1E45":"n","\u0148":"n","\u1E47":"n","\u0146":"n","\u1E4B":"n","\u1E49":"n","\u019E":"n","\u0272":"n","\u0149":"n","\uA791":"n","\uA7A5":"n","\u01CC":"nj","\u24DE":"o","\uFF4F":"o","\u00F2":"o","\u00F3":"o","\u00F4":"o","\u1ED3":"o","\u1ED1":"o","\u1ED7":"o","\u1ED5":"o","\u00F5":"o","\u1E4D":"o","\u022D":"o","\u1E4F":"o","\u014D":"o","\u1E51":"o","\u1E53":"o","\u014F":"o","\u022F":"o","\u0231":"o","\u00F6":"o","\u022B":"o","\u1ECF":"o","\u0151":"o","\u01D2":"o","\u020D":"o","\u020F":"o","\u01A1":"o","\u1EDD":"o","\u1EDB":"o","\u1EE1":"o","\u1EDF":"o","\u1EE3":"o","\u1ECD":"o","\u1ED9":"o","\u01EB":"o","\u01ED":"o","\u00F8":"o","\u01FF":"o","\u0254":"o","\uA74B":"o","\uA74D":"o","\u0275":"o","\u01A3":"oi","\u0223":"ou","\uA74F":"oo","\u24DF":"p","\uFF50":"p","\u1E55":"p","\u1E57":"p","\u01A5":"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q","\uFF51":"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r","\uFF52":"r","\u0155":"r","\u1E59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1E5B":"r","\u1E5D":"r","\u0157":"r","\u1E5F":"r","\u024D":"r","\u027D":"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s","\uFF53":"s","\u00DF":"s","\u015B":"s","\u1E65":"s","\u015D":"s","\u1E61":"s","\u0161":"s","\u1E67":"s","\u1E63":"s","\u1E69":"s","\u0219":"s","\u015F":"s","\u023F":"s","\uA7A9":"s","\uA785":"s","\u1E9B":"s","\u24E3":"t","\uFF54":"t","\u1E6B":"t","\u1E97":"t","\u0165":"t","\u1E6D":"t","\u021B":"t","\u0163":"t","\u1E71":"t","\u1E6F":"t","\u0167":"t","\u01AD":"t","\u0288":"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u","\uFF55":"u","\u00F9":"u","\u00FA":"u","\u00FB":"u","\u0169":"u","\u1E79":"u","\u016B":"u","\u1E7B":"u","\u016D":"u","\u00FC":"u","\u01DC":"u","\u01D8":"u","\u01D6":"u","\u01DA":"u","\u1EE7":"u","\u016F":"u","\u0171":"u","\u01D4":"u","\u0215":"u","\u0217":"u","\u01B0":"u","\u1EEB":"u","\u1EE9":"u","\u1EEF":"u","\u1EED":"u","\u1EF1":"u","\u1EE5":"u","\u1E73":"u","\u0173":"u","\u1E77":"u","\u1E75":"u","\u0289":"u","\u24E5":"v","\uFF56":"v","\u1E7D":"v","\u1E7F":"v","\u028B":"v","\uA75F":"v","\u028C":"v","\uA761":"vy","\u24E6":"w","\uFF57":"w","\u1E81":"w","\u1E83":"w","\u0175":"w","\u1E87":"w","\u1E85":"w","\u1E98":"w","\u1E89":"w","\u2C73":"w","\u24E7":"x","\uFF58":"x","\u1E8B":"x","\u1E8D":"x","\u24E8":"y","\uFF59":"y","\u1EF3":"y","\u00FD":"y","\u0177":"y","\u1EF9":"y","\u0233":"y","\u1E8F":"y","\u00FF":"y","\u1EF7":"y","\u1E99":"y","\u1EF5":"y","\u01B4":"y","\u024F":"y","\u1EFF":"y","\u24E9":"z","\uFF5A":"z","\u017A":"z","\u1E91":"z","\u017C":"z","\u017E":"z","\u1E93":"z","\u1E95":"z","\u01B6":"z","\u0225":"z","\u0240":"z","\u2C6C":"z","\uA763":"z"};
|
|
101
|
+
DIACRITICS = {"\u24B6":"A","\uFF21":"A","\u00C0":"A","\u00C1":"A","\u00C2":"A","\u1EA6":"A","\u1EA4":"A","\u1EAA":"A","\u1EA8":"A","\u00C3":"A","\u0100":"A","\u0102":"A","\u1EB0":"A","\u1EAE":"A","\u1EB4":"A","\u1EB2":"A","\u0226":"A","\u01E0":"A","\u00C4":"A","\u01DE":"A","\u1EA2":"A","\u00C5":"A","\u01FA":"A","\u01CD":"A","\u0200":"A","\u0202":"A","\u1EA0":"A","\u1EAC":"A","\u1EB6":"A","\u1E00":"A","\u0104":"A","\u023A":"A","\u2C6F":"A","\uA732":"AA","\u00C6":"AE","\u01FC":"AE","\u01E2":"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B","\uFF22":"B","\u1E02":"B","\u1E04":"B","\u1E06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24B8":"C","\uFF23":"C","\u0106":"C","\u0108":"C","\u010A":"C","\u010C":"C","\u00C7":"C","\u1E08":"C","\u0187":"C","\u023B":"C","\uA73E":"C","\u24B9":"D","\uFF24":"D","\u1E0A":"D","\u010E":"D","\u1E0C":"D","\u1E10":"D","\u1E12":"D","\u1E0E":"D","\u0110":"D","\u018B":"D","\u018A":"D","\u0189":"D","\uA779":"D","\u01F1":"DZ","\u01C4":"DZ","\u01F2":"Dz","\u01C5":"Dz","\u24BA":"E","\uFF25":"E","\u00C8":"E","\u00C9":"E","\u00CA":"E","\u1EC0":"E","\u1EBE":"E","\u1EC4":"E","\u1EC2":"E","\u1EBC":"E","\u0112":"E","\u1E14":"E","\u1E16":"E","\u0114":"E","\u0116":"E","\u00CB":"E","\u1EBA":"E","\u011A":"E","\u0204":"E","\u0206":"E","\u1EB8":"E","\u1EC6":"E","\u0228":"E","\u1E1C":"E","\u0118":"E","\u1E18":"E","\u1E1A":"E","\u0190":"E","\u018E":"E","\u24BB":"F","\uFF26":"F","\u1E1E":"F","\u0191":"F","\uA77B":"F","\u24BC":"G","\uFF27":"G","\u01F4":"G","\u011C":"G","\u1E20":"G","\u011E":"G","\u0120":"G","\u01E6":"G","\u0122":"G","\u01E4":"G","\u0193":"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H","\uFF28":"H","\u0124":"H","\u1E22":"H","\u1E26":"H","\u021E":"H","\u1E24":"H","\u1E28":"H","\u1E2A":"H","\u0126":"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I","\uFF29":"I","\u00CC":"I","\u00CD":"I","\u00CE":"I","\u0128":"I","\u012A":"I","\u012C":"I","\u0130":"I","\u00CF":"I","\u1E2E":"I","\u1EC8":"I","\u01CF":"I","\u0208":"I","\u020A":"I","\u1ECA":"I","\u012E":"I","\u1E2C":"I","\u0197":"I","\u24BF":"J","\uFF2A":"J","\u0134":"J","\u0248":"J","\u24C0":"K","\uFF2B":"K","\u1E30":"K","\u01E8":"K","\u1E32":"K","\u0136":"K","\u1E34":"K","\u0198":"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L","\uFF2C":"L","\u013F":"L","\u0139":"L","\u013D":"L","\u1E36":"L","\u1E38":"L","\u013B":"L","\u1E3C":"L","\u1E3A":"L","\u0141":"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L","\u01C7":"LJ","\u01C8":"Lj","\u24C2":"M","\uFF2D":"M","\u1E3E":"M","\u1E40":"M","\u1E42":"M","\u2C6E":"M","\u019C":"M","\u24C3":"N","\uFF2E":"N","\u01F8":"N","\u0143":"N","\u00D1":"N","\u1E44":"N","\u0147":"N","\u1E46":"N","\u0145":"N","\u1E4A":"N","\u1E48":"N","\u0220":"N","\u019D":"N","\uA790":"N","\uA7A4":"N","\u01CA":"NJ","\u01CB":"Nj","\u24C4":"O","\uFF2F":"O","\u00D2":"O","\u00D3":"O","\u00D4":"O","\u1ED2":"O","\u1ED0":"O","\u1ED6":"O","\u1ED4":"O","\u00D5":"O","\u1E4C":"O","\u022C":"O","\u1E4E":"O","\u014C":"O","\u1E50":"O","\u1E52":"O","\u014E":"O","\u022E":"O","\u0230":"O","\u00D6":"O","\u022A":"O","\u1ECE":"O","\u0150":"O","\u01D1":"O","\u020C":"O","\u020E":"O","\u01A0":"O","\u1EDC":"O","\u1EDA":"O","\u1EE0":"O","\u1EDE":"O","\u1EE2":"O","\u1ECC":"O","\u1ED8":"O","\u01EA":"O","\u01EC":"O","\u00D8":"O","\u01FE":"O","\u0186":"O","\u019F":"O","\uA74A":"O","\uA74C":"O","\u01A2":"OI","\uA74E":"OO","\u0222":"OU","\u24C5":"P","\uFF30":"P","\u1E54":"P","\u1E56":"P","\u01A4":"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q","\uFF31":"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R","\uFF32":"R","\u0154":"R","\u1E58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1E5A":"R","\u1E5C":"R","\u0156":"R","\u1E5E":"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S","\uFF33":"S","\u1E9E":"S","\u015A":"S","\u1E64":"S","\u015C":"S","\u1E60":"S","\u0160":"S","\u1E66":"S","\u1E62":"S","\u1E68":"S","\u0218":"S","\u015E":"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T","\uFF34":"T","\u1E6A":"T","\u0164":"T","\u1E6C":"T","\u021A":"T","\u0162":"T","\u1E70":"T","\u1E6E":"T","\u0166":"T","\u01AC":"T","\u01AE":"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U","\uFF35":"U","\u00D9":"U","\u00DA":"U","\u00DB":"U","\u0168":"U","\u1E78":"U","\u016A":"U","\u1E7A":"U","\u016C":"U","\u00DC":"U","\u01DB":"U","\u01D7":"U","\u01D5":"U","\u01D9":"U","\u1EE6":"U","\u016E":"U","\u0170":"U","\u01D3":"U","\u0214":"U","\u0216":"U","\u01AF":"U","\u1EEA":"U","\u1EE8":"U","\u1EEE":"U","\u1EEC":"U","\u1EF0":"U","\u1EE4":"U","\u1E72":"U","\u0172":"U","\u1E76":"U","\u1E74":"U","\u0244":"U","\u24CB":"V","\uFF36":"V","\u1E7C":"V","\u1E7E":"V","\u01B2":"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W","\uFF37":"W","\u1E80":"W","\u1E82":"W","\u0174":"W","\u1E86":"W","\u1E84":"W","\u1E88":"W","\u2C72":"W","\u24CD":"X","\uFF38":"X","\u1E8A":"X","\u1E8C":"X","\u24CE":"Y","\uFF39":"Y","\u1EF2":"Y","\u00DD":"Y","\u0176":"Y","\u1EF8":"Y","\u0232":"Y","\u1E8E":"Y","\u0178":"Y","\u1EF6":"Y","\u1EF4":"Y","\u01B3":"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z","\uFF3A":"Z","\u0179":"Z","\u1E90":"Z","\u017B":"Z","\u017D":"Z","\u1E92":"Z","\u1E94":"Z","\u01B5":"Z","\u0224":"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a","\uFF41":"a","\u1E9A":"a","\u00E0":"a","\u00E1":"a","\u00E2":"a","\u1EA7":"a","\u1EA5":"a","\u1EAB":"a","\u1EA9":"a","\u00E3":"a","\u0101":"a","\u0103":"a","\u1EB1":"a","\u1EAF":"a","\u1EB5":"a","\u1EB3":"a","\u0227":"a","\u01E1":"a","\u00E4":"a","\u01DF":"a","\u1EA3":"a","\u00E5":"a","\u01FB":"a","\u01CE":"a","\u0201":"a","\u0203":"a","\u1EA1":"a","\u1EAD":"a","\u1EB7":"a","\u1E01":"a","\u0105":"a","\u2C65":"a","\u0250":"a","\uA733":"aa","\u00E6":"ae","\u01FD":"ae","\u01E3":"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b","\uFF42":"b","\u1E03":"b","\u1E05":"b","\u1E07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24D2":"c","\uFF43":"c","\u0107":"c","\u0109":"c","\u010B":"c","\u010D":"c","\u00E7":"c","\u1E09":"c","\u0188":"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d","\uFF44":"d","\u1E0B":"d","\u010F":"d","\u1E0D":"d","\u1E11":"d","\u1E13":"d","\u1E0F":"d","\u0111":"d","\u018C":"d","\u0256":"d","\u0257":"d","\uA77A":"d","\u01F3":"dz","\u01C6":"dz","\u24D4":"e","\uFF45":"e","\u00E8":"e","\u00E9":"e","\u00EA":"e","\u1EC1":"e","\u1EBF":"e","\u1EC5":"e","\u1EC3":"e","\u1EBD":"e","\u0113":"e","\u1E15":"e","\u1E17":"e","\u0115":"e","\u0117":"e","\u00EB":"e","\u1EBB":"e","\u011B":"e","\u0205":"e","\u0207":"e","\u1EB9":"e","\u1EC7":"e","\u0229":"e","\u1E1D":"e","\u0119":"e","\u1E19":"e","\u1E1B":"e","\u0247":"e","\u025B":"e","\u01DD":"e","\u24D5":"f","\uFF46":"f","\u1E1F":"f","\u0192":"f","\uA77C":"f","\u24D6":"g","\uFF47":"g","\u01F5":"g","\u011D":"g","\u1E21":"g","\u011F":"g","\u0121":"g","\u01E7":"g","\u0123":"g","\u01E5":"g","\u0260":"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h","\uFF48":"h","\u0125":"h","\u1E23":"h","\u1E27":"h","\u021F":"h","\u1E25":"h","\u1E29":"h","\u1E2B":"h","\u1E96":"h","\u0127":"h","\u2C68":"h","\u2C76":"h","\u0265":"h","\u0195":"hv","\u24D8":"i","\uFF49":"i","\u00EC":"i","\u00ED":"i","\u00EE":"i","\u0129":"i","\u012B":"i","\u012D":"i","\u00EF":"i","\u1E2F":"i","\u1EC9":"i","\u01D0":"i","\u0209":"i","\u020B":"i","\u1ECB":"i","\u012F":"i","\u1E2D":"i","\u0268":"i","\u0131":"i","\u24D9":"j","\uFF4A":"j","\u0135":"j","\u01F0":"j","\u0249":"j","\u24DA":"k","\uFF4B":"k","\u1E31":"k","\u01E9":"k","\u1E33":"k","\u0137":"k","\u1E35":"k","\u0199":"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l","\uFF4C":"l","\u0140":"l","\u013A":"l","\u013E":"l","\u1E37":"l","\u1E39":"l","\u013C":"l","\u1E3D":"l","\u1E3B":"l","\u017F":"l","\u0142":"l","\u019A":"l","\u026B":"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l","\u01C9":"lj","\u24DC":"m","\uFF4D":"m","\u1E3F":"m","\u1E41":"m","\u1E43":"m","\u0271":"m","\u026F":"m","\u24DD":"n","\uFF4E":"n","\u01F9":"n","\u0144":"n","\u00F1":"n","\u1E45":"n","\u0148":"n","\u1E47":"n","\u0146":"n","\u1E4B":"n","\u1E49":"n","\u019E":"n","\u0272":"n","\u0149":"n","\uA791":"n","\uA7A5":"n","\u01CC":"nj","\u24DE":"o","\uFF4F":"o","\u00F2":"o","\u00F3":"o","\u00F4":"o","\u1ED3":"o","\u1ED1":"o","\u1ED7":"o","\u1ED5":"o","\u00F5":"o","\u1E4D":"o","\u022D":"o","\u1E4F":"o","\u014D":"o","\u1E51":"o","\u1E53":"o","\u014F":"o","\u022F":"o","\u0231":"o","\u00F6":"o","\u022B":"o","\u1ECF":"o","\u0151":"o","\u01D2":"o","\u020D":"o","\u020F":"o","\u01A1":"o","\u1EDD":"o","\u1EDB":"o","\u1EE1":"o","\u1EDF":"o","\u1EE3":"o","\u1ECD":"o","\u1ED9":"o","\u01EB":"o","\u01ED":"o","\u00F8":"o","\u01FF":"o","\u0254":"o","\uA74B":"o","\uA74D":"o","\u0275":"o","\u01A3":"oi","\u0223":"ou","\uA74F":"oo","\u24DF":"p","\uFF50":"p","\u1E55":"p","\u1E57":"p","\u01A5":"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q","\uFF51":"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r","\uFF52":"r","\u0155":"r","\u1E59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1E5B":"r","\u1E5D":"r","\u0157":"r","\u1E5F":"r","\u024D":"r","\u027D":"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s","\uFF53":"s","\u00DF":"s","\u015B":"s","\u1E65":"s","\u015D":"s","\u1E61":"s","\u0161":"s","\u1E67":"s","\u1E63":"s","\u1E69":"s","\u0219":"s","\u015F":"s","\u023F":"s","\uA7A9":"s","\uA785":"s","\u1E9B":"s","\u24E3":"t","\uFF54":"t","\u1E6B":"t","\u1E97":"t","\u0165":"t","\u1E6D":"t","\u021B":"t","\u0163":"t","\u1E71":"t","\u1E6F":"t","\u0167":"t","\u01AD":"t","\u0288":"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u","\uFF55":"u","\u00F9":"u","\u00FA":"u","\u00FB":"u","\u0169":"u","\u1E79":"u","\u016B":"u","\u1E7B":"u","\u016D":"u","\u00FC":"u","\u01DC":"u","\u01D8":"u","\u01D6":"u","\u01DA":"u","\u1EE7":"u","\u016F":"u","\u0171":"u","\u01D4":"u","\u0215":"u","\u0217":"u","\u01B0":"u","\u1EEB":"u","\u1EE9":"u","\u1EEF":"u","\u1EED":"u","\u1EF1":"u","\u1EE5":"u","\u1E73":"u","\u0173":"u","\u1E77":"u","\u1E75":"u","\u0289":"u","\u24E5":"v","\uFF56":"v","\u1E7D":"v","\u1E7F":"v","\u028B":"v","\uA75F":"v","\u028C":"v","\uA761":"vy","\u24E6":"w","\uFF57":"w","\u1E81":"w","\u1E83":"w","\u0175":"w","\u1E87":"w","\u1E85":"w","\u1E98":"w","\u1E89":"w","\u2C73":"w","\u24E7":"x","\uFF58":"x","\u1E8B":"x","\u1E8D":"x","\u24E8":"y","\uFF59":"y","\u1EF3":"y","\u00FD":"y","\u0177":"y","\u1EF9":"y","\u0233":"y","\u1E8F":"y","\u00FF":"y","\u1EF7":"y","\u1E99":"y","\u1EF5":"y","\u01B4":"y","\u024F":"y","\u1EFF":"y","\u24E9":"z","\uFF5A":"z","\u017A":"z","\u1E91":"z","\u017C":"z","\u017E":"z","\u1E93":"z","\u1E95":"z","\u01B6":"z","\u0225":"z","\u0240":"z","\u2C6C":"z","\uA763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038A":"\u0399","\u03AA":"\u0399","\u038C":"\u039F","\u038E":"\u03A5","\u03AB":"\u03A5","\u038F":"\u03A9","\u03AC":"\u03B1","\u03AD":"\u03B5","\u03AE":"\u03B7","\u03AF":"\u03B9","\u03CA":"\u03B9","\u0390":"\u03B9","\u03CC":"\u03BF","\u03CD":"\u03C5","\u03CB":"\u03C5","\u03B0":"\u03C5","\u03C9":"\u03C9","\u03C2":"\u03C3"};
|
|
102
102
|
|
|
103
103
|
$document = $(document);
|
|
104
104
|
|
|
@@ -193,10 +193,6 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
$document.on("mousemove", function (e) {
|
|
197
|
-
lastMousePosition.x = e.pageX;
|
|
198
|
-
lastMousePosition.y = e.pageY;
|
|
199
|
-
});
|
|
200
196
|
|
|
201
197
|
/**
|
|
202
198
|
* filters mouse events so an event is fired only if the mouse moved.
|
|
@@ -324,27 +320,34 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
324
320
|
function syncCssClasses(dest, src, adapter) {
|
|
325
321
|
var classes, replacements = [], adapted;
|
|
326
322
|
|
|
327
|
-
classes = dest.attr("class");
|
|
323
|
+
classes = $.trim(dest.attr("class"));
|
|
324
|
+
|
|
328
325
|
if (classes) {
|
|
329
326
|
classes = '' + classes; // for IE which returns object
|
|
330
|
-
|
|
327
|
+
|
|
328
|
+
$(classes.split(/\s+/)).each2(function() {
|
|
331
329
|
if (this.indexOf("select2-") === 0) {
|
|
332
330
|
replacements.push(this);
|
|
333
331
|
}
|
|
334
332
|
});
|
|
335
333
|
}
|
|
336
|
-
|
|
334
|
+
|
|
335
|
+
classes = $.trim(src.attr("class"));
|
|
336
|
+
|
|
337
337
|
if (classes) {
|
|
338
338
|
classes = '' + classes; // for IE which returns object
|
|
339
|
-
|
|
339
|
+
|
|
340
|
+
$(classes.split(/\s+/)).each2(function() {
|
|
340
341
|
if (this.indexOf("select2-") !== 0) {
|
|
341
342
|
adapted = adapter(this);
|
|
343
|
+
|
|
342
344
|
if (adapted) {
|
|
343
345
|
replacements.push(adapted);
|
|
344
346
|
}
|
|
345
347
|
}
|
|
346
348
|
});
|
|
347
349
|
}
|
|
350
|
+
|
|
348
351
|
dest.attr("class", replacements.join(" "));
|
|
349
352
|
}
|
|
350
353
|
|
|
@@ -391,7 +394,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
391
394
|
* @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url.
|
|
392
395
|
* @param options.dataType request data type: ajax, jsonp, other datatypes supported by jQuery's $.ajax function or the transport function if specified
|
|
393
396
|
* @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often
|
|
394
|
-
* @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2.
|
|
397
|
+
* @param options.results a function(remoteData, pageNumber, query) that converts data returned form the remote request to the format expected by Select2.
|
|
395
398
|
* The expected format is an object containing the following keys:
|
|
396
399
|
* results array of objects that will be used as choices
|
|
397
400
|
* more (optional) boolean indicating whether there are more results available
|
|
@@ -438,7 +441,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
438
441
|
data: data,
|
|
439
442
|
success: function (data) {
|
|
440
443
|
// TODO - replace query.page with query so users have access to term, page, etc.
|
|
441
|
-
|
|
444
|
+
// added query as third paramter to keep backwards compatibility
|
|
445
|
+
var results = options.results(data, query.page, query);
|
|
442
446
|
query.callback(results);
|
|
443
447
|
}
|
|
444
448
|
});
|
|
@@ -553,10 +557,18 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
553
557
|
throw new Error(formatterName +" must be a string, function, or falsy value");
|
|
554
558
|
}
|
|
555
559
|
|
|
556
|
-
|
|
560
|
+
/**
|
|
561
|
+
* Returns a given value
|
|
562
|
+
* If given a function, returns its output
|
|
563
|
+
*
|
|
564
|
+
* @param val string|function
|
|
565
|
+
* @param context value of "this" to be passed to function
|
|
566
|
+
* @returns {*}
|
|
567
|
+
*/
|
|
568
|
+
function evaluate(val, context) {
|
|
557
569
|
if ($.isFunction(val)) {
|
|
558
|
-
var args = Array.prototype.slice.call(arguments,
|
|
559
|
-
return val.apply(
|
|
570
|
+
var args = Array.prototype.slice.call(arguments, 2);
|
|
571
|
+
return val.apply(context, args);
|
|
560
572
|
}
|
|
561
573
|
return val;
|
|
562
574
|
}
|
|
@@ -629,7 +641,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
629
641
|
function cleanupJQueryElements() {
|
|
630
642
|
var self = this;
|
|
631
643
|
|
|
632
|
-
|
|
644
|
+
$.each(arguments, function (i, element) {
|
|
633
645
|
self[element].remove();
|
|
634
646
|
self[element] = null;
|
|
635
647
|
});
|
|
@@ -697,8 +709,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
697
709
|
syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass);
|
|
698
710
|
|
|
699
711
|
this.container.attr("style", opts.element.attr("style"));
|
|
700
|
-
this.container.css(evaluate(opts.containerCss));
|
|
701
|
-
this.container.addClass(evaluate(opts.containerCssClass));
|
|
712
|
+
this.container.css(evaluate(opts.containerCss, this.opts.element));
|
|
713
|
+
this.container.addClass(evaluate(opts.containerCssClass, this.opts.element));
|
|
702
714
|
|
|
703
715
|
this.elementTabIndex = this.opts.element.attr("tabindex");
|
|
704
716
|
|
|
@@ -715,7 +727,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
715
727
|
|
|
716
728
|
syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass);
|
|
717
729
|
|
|
718
|
-
this.dropdown.addClass(evaluate(opts.dropdownCssClass));
|
|
730
|
+
this.dropdown.addClass(evaluate(opts.dropdownCssClass, this.opts.element));
|
|
719
731
|
this.dropdown.data("select2", this);
|
|
720
732
|
this.dropdown.on("click", killEvent);
|
|
721
733
|
|
|
@@ -828,10 +840,16 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
828
840
|
|
|
829
841
|
this.close();
|
|
830
842
|
|
|
843
|
+
if (element.length && element[0].detachEvent) {
|
|
844
|
+
element.each(function () {
|
|
845
|
+
this.detachEvent("onpropertychange", this._sync);
|
|
846
|
+
});
|
|
847
|
+
}
|
|
831
848
|
if (this.propertyObserver) {
|
|
832
849
|
this.propertyObserver.disconnect();
|
|
833
850
|
this.propertyObserver = null;
|
|
834
851
|
}
|
|
852
|
+
this._sync = null;
|
|
835
853
|
|
|
836
854
|
if (select2 !== undefined) {
|
|
837
855
|
select2.container.remove();
|
|
@@ -909,6 +927,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
909
927
|
|
|
910
928
|
results = opts.sortResults(results, container, query);
|
|
911
929
|
|
|
930
|
+
// collect the created nodes for bulk append
|
|
931
|
+
var nodes = [];
|
|
912
932
|
for (i = 0, l = results.length; i < l; i = i + 1) {
|
|
913
933
|
|
|
914
934
|
result=results[i];
|
|
@@ -948,9 +968,11 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
948
968
|
}
|
|
949
969
|
|
|
950
970
|
node.data("select2-data", result);
|
|
951
|
-
|
|
971
|
+
nodes.push(node[0]);
|
|
952
972
|
}
|
|
953
973
|
|
|
974
|
+
// bulk append the created nodes
|
|
975
|
+
container.append(nodes);
|
|
954
976
|
liveRegion.text(opts.formatMatches(results.length));
|
|
955
977
|
};
|
|
956
978
|
|
|
@@ -1062,7 +1084,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1062
1084
|
*/
|
|
1063
1085
|
// abstract
|
|
1064
1086
|
monitorSource: function () {
|
|
1065
|
-
var el = this.opts.element,
|
|
1087
|
+
var el = this.opts.element, observer, self = this;
|
|
1066
1088
|
|
|
1067
1089
|
el.on("change.select2", this.bind(function (e) {
|
|
1068
1090
|
if (this.opts.element.data("select2-change-triggered") !== true) {
|
|
@@ -1070,7 +1092,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1070
1092
|
}
|
|
1071
1093
|
}));
|
|
1072
1094
|
|
|
1073
|
-
|
|
1095
|
+
this._sync = this.bind(function () {
|
|
1074
1096
|
|
|
1075
1097
|
// sync enabled state
|
|
1076
1098
|
var disabled = el.prop("disabled");
|
|
@@ -1082,26 +1104,26 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1082
1104
|
this.readonly(readonly);
|
|
1083
1105
|
|
|
1084
1106
|
syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass);
|
|
1085
|
-
this.container.addClass(evaluate(this.opts.containerCssClass));
|
|
1107
|
+
this.container.addClass(evaluate(this.opts.containerCssClass, this.opts.element));
|
|
1086
1108
|
|
|
1087
1109
|
syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass);
|
|
1088
|
-
this.dropdown.addClass(evaluate(this.opts.dropdownCssClass));
|
|
1110
|
+
this.dropdown.addClass(evaluate(this.opts.dropdownCssClass, this.opts.element));
|
|
1089
1111
|
|
|
1090
1112
|
});
|
|
1091
1113
|
|
|
1092
1114
|
// IE8-10 (IE9/10 won't fire propertyChange via attachEventListener)
|
|
1093
1115
|
if (el.length && el[0].attachEvent) {
|
|
1094
1116
|
el.each(function() {
|
|
1095
|
-
this.attachEvent("onpropertychange",
|
|
1117
|
+
this.attachEvent("onpropertychange", self._sync);
|
|
1096
1118
|
});
|
|
1097
1119
|
}
|
|
1098
|
-
|
|
1120
|
+
|
|
1099
1121
|
// safari, chrome, firefox, IE11
|
|
1100
1122
|
observer = window.MutationObserver || window.WebKitMutationObserver|| window.MozMutationObserver;
|
|
1101
1123
|
if (observer !== undefined) {
|
|
1102
1124
|
if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }
|
|
1103
1125
|
this.propertyObserver = new observer(function (mutations) {
|
|
1104
|
-
mutations.
|
|
1126
|
+
$.each(mutations, self._sync);
|
|
1105
1127
|
});
|
|
1106
1128
|
this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false });
|
|
1107
1129
|
}
|
|
@@ -1109,7 +1131,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1109
1131
|
|
|
1110
1132
|
// abstract
|
|
1111
1133
|
triggerSelect: function(data) {
|
|
1112
|
-
var evt = $.Event("select2-selecting", { val: this.id(data), object: data });
|
|
1134
|
+
var evt = $.Event("select2-selecting", { val: this.id(data), object: data, choice: data });
|
|
1113
1135
|
this.opts.element.trigger(evt);
|
|
1114
1136
|
return !evt.isDefaultPrevented();
|
|
1115
1137
|
},
|
|
@@ -1184,7 +1206,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1184
1206
|
|
|
1185
1207
|
// abstract
|
|
1186
1208
|
opened: function () {
|
|
1187
|
-
return this.container.hasClass("select2-dropdown-open");
|
|
1209
|
+
return (this.container) ? this.container.hasClass("select2-dropdown-open") : false;
|
|
1188
1210
|
},
|
|
1189
1211
|
|
|
1190
1212
|
// abstract
|
|
@@ -1291,7 +1313,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1291
1313
|
this.container.removeClass("select2-drop-above");
|
|
1292
1314
|
$dropdown.removeClass("select2-drop-above");
|
|
1293
1315
|
}
|
|
1294
|
-
css = $.extend(css, evaluate(this.opts.dropdownCss));
|
|
1316
|
+
css = $.extend(css, evaluate(this.opts.dropdownCss, this.opts.element));
|
|
1295
1317
|
|
|
1296
1318
|
$dropdown.css(css);
|
|
1297
1319
|
},
|
|
@@ -1329,6 +1351,12 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1329
1351
|
|
|
1330
1352
|
this.opening();
|
|
1331
1353
|
|
|
1354
|
+
// Only bind the document mousemove when the dropdown is visible
|
|
1355
|
+
$document.on("mousemove.select2Event", function (e) {
|
|
1356
|
+
lastMousePosition.x = e.pageX;
|
|
1357
|
+
lastMousePosition.y = e.pageY;
|
|
1358
|
+
});
|
|
1359
|
+
|
|
1332
1360
|
return true;
|
|
1333
1361
|
},
|
|
1334
1362
|
|
|
@@ -1425,6 +1453,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1425
1453
|
this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active");
|
|
1426
1454
|
this.results.empty();
|
|
1427
1455
|
|
|
1456
|
+
// Now that the dropdown is closed, unbind the global document mousemove event
|
|
1457
|
+
$document.off("mousemove.select2Event");
|
|
1428
1458
|
|
|
1429
1459
|
this.clearSearch();
|
|
1430
1460
|
this.search.removeClass("select2-active");
|
|
@@ -1448,12 +1478,12 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1448
1478
|
|
|
1449
1479
|
//abstract
|
|
1450
1480
|
getMaximumSelectionSize: function() {
|
|
1451
|
-
return evaluate(this.opts.maximumSelectionSize);
|
|
1481
|
+
return evaluate(this.opts.maximumSelectionSize, this.opts.element);
|
|
1452
1482
|
},
|
|
1453
1483
|
|
|
1454
1484
|
// abstract
|
|
1455
1485
|
ensureHighlightVisible: function () {
|
|
1456
|
-
var results = this.results, children, index, child, hb, rb, y, more;
|
|
1486
|
+
var results = this.results, children, index, child, hb, rb, y, more, topOffset;
|
|
1457
1487
|
|
|
1458
1488
|
index = this.highlight();
|
|
1459
1489
|
|
|
@@ -1473,7 +1503,9 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1473
1503
|
|
|
1474
1504
|
child = $(children[index]);
|
|
1475
1505
|
|
|
1476
|
-
|
|
1506
|
+
topOffset = (child.offset() || {}).top || 0;
|
|
1507
|
+
|
|
1508
|
+
hb = topOffset + child.outerHeight(true);
|
|
1477
1509
|
|
|
1478
1510
|
// if this is the last child lets also make sure select2-more-results is visible
|
|
1479
1511
|
if (index === children.length - 1) {
|
|
@@ -1487,7 +1519,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1487
1519
|
if (hb > rb) {
|
|
1488
1520
|
results.scrollTop(results.scrollTop() + (hb - rb));
|
|
1489
1521
|
}
|
|
1490
|
-
y =
|
|
1522
|
+
y = topOffset - results.offset().top;
|
|
1491
1523
|
|
|
1492
1524
|
// make sure the top of the element is visible
|
|
1493
1525
|
if (y < 0 && child.css('display') != 'none' ) {
|
|
@@ -1606,7 +1638,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1606
1638
|
self.postprocessResults(data, false, false);
|
|
1607
1639
|
|
|
1608
1640
|
if (data.more===true) {
|
|
1609
|
-
more.detach().appendTo(results).text(evaluate(self.opts.formatLoadMore, page+1));
|
|
1641
|
+
more.detach().appendTo(results).text(evaluate(self.opts.formatLoadMore, self.opts.element, page+1));
|
|
1610
1642
|
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);
|
|
1611
1643
|
} else {
|
|
1612
1644
|
more.remove();
|
|
@@ -1674,14 +1706,14 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1674
1706
|
if (maxSelSize >=1) {
|
|
1675
1707
|
data = this.data();
|
|
1676
1708
|
if ($.isArray(data) && data.length >= maxSelSize && checkFormatter(opts.formatSelectionTooBig, "formatSelectionTooBig")) {
|
|
1677
|
-
render("<li class='select2-selection-limit'>" + evaluate(opts.formatSelectionTooBig, maxSelSize) + "</li>");
|
|
1709
|
+
render("<li class='select2-selection-limit'>" + evaluate(opts.formatSelectionTooBig, opts.element, maxSelSize) + "</li>");
|
|
1678
1710
|
return;
|
|
1679
1711
|
}
|
|
1680
1712
|
}
|
|
1681
1713
|
|
|
1682
1714
|
if (search.val().length < opts.minimumInputLength) {
|
|
1683
1715
|
if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {
|
|
1684
|
-
render("<li class='select2-no-results'>" + evaluate(opts.formatInputTooShort, search.val(), opts.minimumInputLength) + "</li>");
|
|
1716
|
+
render("<li class='select2-no-results'>" + evaluate(opts.formatInputTooShort, opts.element, search.val(), opts.minimumInputLength) + "</li>");
|
|
1685
1717
|
} else {
|
|
1686
1718
|
render("");
|
|
1687
1719
|
}
|
|
@@ -1691,7 +1723,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1691
1723
|
|
|
1692
1724
|
if (opts.maximumInputLength && search.val().length > opts.maximumInputLength) {
|
|
1693
1725
|
if (checkFormatter(opts.formatInputTooLong, "formatInputTooLong")) {
|
|
1694
|
-
render("<li class='select2-no-results'>" + evaluate(opts.formatInputTooLong, search.val(), opts.maximumInputLength) + "</li>");
|
|
1726
|
+
render("<li class='select2-no-results'>" + evaluate(opts.formatInputTooLong, opts.element, search.val(), opts.maximumInputLength) + "</li>");
|
|
1695
1727
|
} else {
|
|
1696
1728
|
render("");
|
|
1697
1729
|
}
|
|
@@ -1699,7 +1731,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1699
1731
|
}
|
|
1700
1732
|
|
|
1701
1733
|
if (opts.formatSearching && this.findHighlightableChoices().length === 0) {
|
|
1702
|
-
render("<li class='select2-searching'>" + evaluate(opts.formatSearching) + "</li>");
|
|
1734
|
+
render("<li class='select2-searching'>" + evaluate(opts.formatSearching, opts.element) + "</li>");
|
|
1703
1735
|
}
|
|
1704
1736
|
|
|
1705
1737
|
search.addClass("select2-active");
|
|
@@ -1750,7 +1782,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1750
1782
|
}
|
|
1751
1783
|
|
|
1752
1784
|
if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
|
|
1753
|
-
render("<li class='select2-no-results'>" + evaluate(opts.formatNoMatches, search.val()) + "</li>");
|
|
1785
|
+
render("<li class='select2-no-results'>" + evaluate(opts.formatNoMatches, opts.element, search.val()) + "</li>");
|
|
1754
1786
|
return;
|
|
1755
1787
|
}
|
|
1756
1788
|
|
|
@@ -1758,7 +1790,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
1758
1790
|
self.opts.populateResults.call(this, results, data.results, {term: search.val(), page: this.resultsPage, context:null});
|
|
1759
1791
|
|
|
1760
1792
|
if (data.more === true && checkFormatter(opts.formatLoadMore, "formatLoadMore")) {
|
|
1761
|
-
results.append("<li class='select2-more-results'>" +
|
|
1793
|
+
results.append("<li class='select2-more-results'>" + opts.escapeMarkup(evaluate(opts.formatLoadMore, opts.element, this.resultsPage)) + "</li>");
|
|
1762
1794
|
window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);
|
|
1763
1795
|
}
|
|
1764
1796
|
|
|
@@ -2637,6 +2669,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
2637
2669
|
.attr('for', this.search.attr('id'));
|
|
2638
2670
|
|
|
2639
2671
|
this.search.on("input paste", this.bind(function() {
|
|
2672
|
+
if (this.search.attr('placeholder') && this.search.val().length == 0) return;
|
|
2640
2673
|
if (!this.isInterfaceEnabled()) return;
|
|
2641
2674
|
if (!this.opened()) {
|
|
2642
2675
|
this.open();
|
|
@@ -3100,7 +3133,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
3100
3133
|
if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){
|
|
3101
3134
|
if(!data || data && !data.more && this.results.find(".select2-no-results").length === 0) {
|
|
3102
3135
|
if (checkFormatter(self.opts.formatNoMatches, "formatNoMatches")) {
|
|
3103
|
-
this.results.append("<li class='select2-no-results'>" + evaluate(self.opts.formatNoMatches, self.search.val()) + "</li>");
|
|
3136
|
+
this.results.append("<li class='select2-no-results'>" + evaluate(self.opts.formatNoMatches, self.opts.element, self.search.val()) + "</li>");
|
|
3104
3137
|
}
|
|
3105
3138
|
}
|
|
3106
3139
|
}
|
|
@@ -3373,7 +3406,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
3373
3406
|
},
|
|
3374
3407
|
formatResultCssClass: function(data) {return data.css;},
|
|
3375
3408
|
formatSelectionCssClass: function(data, container) {return undefined;},
|
|
3376
|
-
formatMatches: function (matches) { return matches + " results are available, use up and down arrow keys to navigate."; },
|
|
3409
|
+
formatMatches: function (matches) { if (matches === 1) { return "One result is available, press enter to select it."; } return matches + " results are available, use up and down arrow keys to navigate."; },
|
|
3377
3410
|
formatNoMatches: function () { return "No matches found"; },
|
|
3378
3411
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " or more character" + (n == 1? "" : "s"); },
|
|
3379
3412
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); },
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select2 Azerbaijani translation.
|
|
3
|
+
*
|
|
4
|
+
* Author: Farhad Safarov <farhad.safarov@gmail.com>
|
|
5
|
+
*/
|
|
6
|
+
(function ($) {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
$.extend($.fn.select2.defaults, {
|
|
10
|
+
formatMatches: function (matches) { return matches + " nəticə mövcuddur, hərəkət etdirmək üçün yuxarı və aşağı düymələrindən istifadə edin."; },
|
|
11
|
+
formatNoMatches: function () { return "Nəticə tapılmadı"; },
|
|
12
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return n + " simvol daxil edin"; },
|
|
13
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " simvol silin"; },
|
|
14
|
+
formatSelectionTooBig: function (limit) { return "Sadəcə " + limit + " element seçə bilərsiniz"; },
|
|
15
|
+
formatLoadMore: function (pageNumber) { return "Daha çox nəticə yüklənir…"; },
|
|
16
|
+
formatSearching: function () { return "Axtarılır…"; }
|
|
17
|
+
});
|
|
18
|
+
})(jQuery);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Bitte " + n + " Zeichen weniger eingeben"; },
|
|
11
11
|
formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; },
|
|
12
12
|
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse…"; },
|
|
13
|
-
formatSearching: function () { return "Suche…"; }
|
|
13
|
+
formatSearching: function () { return "Suche…"; },
|
|
14
|
+
formatMatches: function (matches) { return matches + " Ergebnis " + (matches > 1 ? "se" : "") + " verfügbar, zum Navigieren die Hoch-/Runter-Pfeiltasten verwenden."; }
|
|
14
15
|
});
|
|
15
|
-
})(jQuery);
|
|
16
|
+
})(jQuery);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
$.extend($.fn.select2.defaults, {
|
|
8
8
|
formatMatches: function (matches) { return matches + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."; },
|
|
9
9
|
formatNoMatches: function () { return "Aucun résultat trouvé"; },
|
|
10
|
-
formatInputTooShort: function (input, min) { var n = min - input.length; return "
|
|
11
|
-
formatInputTooLong: function (input, max) { var n = input.length - max; return "
|
|
10
|
+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Saisissez " + n + " caractère" + (n == 1? "" : "s") + " supplémentaire" + (n == 1? "" : "s") ; },
|
|
11
|
+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Supprimez " + n + " caractère" + (n == 1? "" : "s"); },
|
|
12
12
|
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); },
|
|
13
13
|
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires…"; },
|
|
14
14
|
formatSearching: function () { return "Recherche en cours…"; }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @author Jan Kondratowicz <jan@kondratowicz.pl>
|
|
5
5
|
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
|
6
|
+
* @author Michał Połtyn <mike@poltyn.com>
|
|
6
7
|
*/
|
|
7
8
|
(function ($) {
|
|
8
9
|
"use strict";
|
|
9
10
|
|
|
10
11
|
$.extend($.fn.select2.defaults, {
|
|
11
12
|
formatNoMatches: function () { return "Brak wyników"; },
|
|
12
|
-
formatInputTooShort: function (input, min) { return "Wpisz
|
|
13
|
+
formatInputTooShort: function (input, min) { return "Wpisz co najmniej" + character(min - input.length, "znak", "i"); },
|
|
13
14
|
formatInputTooLong: function (input, max) { return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i"); },
|
|
14
15
|
formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); },
|
|
15
16
|
formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
$.extend($.fn.select2.defaults, {
|
|
10
10
|
formatNoMatches: function () { return "Совпадений не найдено"; },
|
|
11
|
-
formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще" + character(min - input.length); },
|
|
11
|
+
formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще хотя бы" + character(min - input.length); },
|
|
12
12
|
formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; },
|
|
13
13
|
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); },
|
|
14
14
|
formatLoadMore: function (pageNumber) { return "Загрузка данных…"; },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
//= depend_on_asset "select2-spinner.gif"
|
|
3
3
|
//= depend_on_asset "select2x2.png"
|
|
4
4
|
/*
|
|
5
|
-
Version: 3.
|
|
5
|
+
Version: 3.5.0 Timestamp: Mon Jun 16 19:29:44 EDT 2014
|
|
6
6
|
*/
|
|
7
7
|
.select2-container {
|
|
8
8
|
margin: 0;
|
|
@@ -59,6 +59,10 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
59
59
|
background-image: linear-gradient(to top, #eee 0%, #fff 50%);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
html[dir="rtl"] .select2-container .select2-choice {
|
|
63
|
+
padding: 0 8px 0 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
.select2-container.select2-drop-above .select2-choice {
|
|
63
67
|
border-bottom-color: #aaa;
|
|
64
68
|
|
|
@@ -87,6 +91,11 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
87
91
|
width: auto;
|
|
88
92
|
}
|
|
89
93
|
|
|
94
|
+
html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
|
|
95
|
+
margin-left: 26px;
|
|
96
|
+
margin-right: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
90
99
|
.select2-container .select2-choice abbr {
|
|
91
100
|
display: none;
|
|
92
101
|
width: 12px;
|
|
@@ -199,6 +208,15 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
199
208
|
background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
|
|
200
209
|
}
|
|
201
210
|
|
|
211
|
+
html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
|
|
212
|
+
left: 0;
|
|
213
|
+
right: auto;
|
|
214
|
+
|
|
215
|
+
border-left: none;
|
|
216
|
+
border-right: 1px solid #aaa;
|
|
217
|
+
border-radius: 4px 0 0 4px;
|
|
218
|
+
}
|
|
219
|
+
|
|
202
220
|
.select2-container .select2-choice .select2-arrow b {
|
|
203
221
|
display: block;
|
|
204
222
|
width: 100%;
|
|
@@ -206,6 +224,10 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
206
224
|
background: url(<%= asset_path('select2.png') %>) no-repeat 0 1px;
|
|
207
225
|
}
|
|
208
226
|
|
|
227
|
+
html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
|
|
228
|
+
background-position: 2px 1px;
|
|
229
|
+
}
|
|
230
|
+
|
|
209
231
|
.select2-search {
|
|
210
232
|
display: inline-block;
|
|
211
233
|
width: 100%;
|
|
@@ -244,6 +266,16 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
244
266
|
background: url(<%= asset_path('select2.png') %>) no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
|
|
245
267
|
}
|
|
246
268
|
|
|
269
|
+
html[dir="rtl"] .select2-search input {
|
|
270
|
+
padding: 4px 5px 4px 20px;
|
|
271
|
+
|
|
272
|
+
background: #fff url(<%= asset_path('select2.png') %>) no-repeat -37px -22px;
|
|
273
|
+
background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
|
|
274
|
+
background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
|
|
275
|
+
background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
|
|
276
|
+
background: url(<%= asset_path('select2.png') %>) no-repeat -37px -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
247
279
|
.select2-drop.select2-drop-above .select2-search input {
|
|
248
280
|
margin-top: 4px;
|
|
249
281
|
}
|
|
@@ -298,10 +330,18 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
298
330
|
border-left: none;
|
|
299
331
|
filter: none;
|
|
300
332
|
}
|
|
333
|
+
html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
|
|
334
|
+
border-right: none;
|
|
335
|
+
}
|
|
336
|
+
|
|
301
337
|
.select2-dropdown-open .select2-choice .select2-arrow b {
|
|
302
338
|
background-position: -18px 1px;
|
|
303
339
|
}
|
|
304
340
|
|
|
341
|
+
html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
|
|
342
|
+
background-position: -16px 1px;
|
|
343
|
+
}
|
|
344
|
+
|
|
305
345
|
.select2-hidden-accessible {
|
|
306
346
|
border: 0;
|
|
307
347
|
clip: rect(0 0 0 0);
|
|
@@ -324,6 +364,11 @@ Version: 3.4.8 Timestamp: Thu May 1 09:50:32 EDT 2014
|
|
|
324
364
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
325
365
|
}
|
|
326
366
|
|
|
367
|
+
html[dir="rtl"] .select2-results {
|
|
368
|
+
padding: 0 4px 0 0;
|
|
369
|
+
margin: 4px 0 4px 4px;
|
|
370
|
+
}
|
|
371
|
+
|
|
327
372
|
.select2-results ul.select2-result-sub {
|
|
328
373
|
margin: 0;
|
|
329
374
|
padding-left: 0;
|
|
@@ -443,7 +488,7 @@ disabled look for disabled choices in the results dropdown
|
|
|
443
488
|
height: auto !important;
|
|
444
489
|
height: 1%;
|
|
445
490
|
margin: 0;
|
|
446
|
-
padding: 0;
|
|
491
|
+
padding: 0 5px 0 0;
|
|
447
492
|
position: relative;
|
|
448
493
|
|
|
449
494
|
border: 1px solid #aaa;
|
|
@@ -457,6 +502,10 @@ disabled look for disabled choices in the results dropdown
|
|
|
457
502
|
background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
|
|
458
503
|
}
|
|
459
504
|
|
|
505
|
+
html[dir="rtl"] .select2-container-multi .select2-choices {
|
|
506
|
+
padding: 0 0 0 5px;
|
|
507
|
+
}
|
|
508
|
+
|
|
460
509
|
.select2-locked {
|
|
461
510
|
padding: 3px 5px 3px 5px !important;
|
|
462
511
|
}
|
|
@@ -540,8 +589,8 @@ html[dir="rtl"] .select2-container-multi .select2-choices li
|
|
|
540
589
|
}
|
|
541
590
|
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
|
|
542
591
|
{
|
|
543
|
-
margin
|
|
544
|
-
|
|
592
|
+
margin: 3px 5px 3px 0;
|
|
593
|
+
padding: 3px 18px 3px 5px;
|
|
545
594
|
}
|
|
546
595
|
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
|
|
547
596
|
cursor: default;
|
|
@@ -571,6 +620,11 @@ html[dir="rtl"] .select2-search-choice-close {
|
|
|
571
620
|
left: 3px;
|
|
572
621
|
}
|
|
573
622
|
|
|
623
|
+
html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
|
|
624
|
+
left: auto;
|
|
625
|
+
right: 2px;
|
|
626
|
+
}
|
|
627
|
+
|
|
574
628
|
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
|
|
575
629
|
background-position: right -11px;
|
|
576
630
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: select2-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rogerio Medeiros
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-07-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thor
|
|
@@ -86,6 +86,7 @@ files:
|
|
|
86
86
|
- app/assets/images/select2x2.png
|
|
87
87
|
- app/assets/javascripts/select2.js
|
|
88
88
|
- app/assets/javascripts/select2_locale_ar.js
|
|
89
|
+
- app/assets/javascripts/select2_locale_az.js
|
|
89
90
|
- app/assets/javascripts/select2_locale_bg.js
|
|
90
91
|
- app/assets/javascripts/select2_locale_ca.js
|
|
91
92
|
- app/assets/javascripts/select2_locale_cs.js
|