update to select 3.3.2
This commit is contained in:
parent
313025d7e9
commit
dc45d0f895
src
containers
inputs/select2/lib
LICENSEREADME.mdcomponent.jsonrelease.shselect2-spinner.gifselect2.cssselect2.jquery.jsonselect2.jsselect2.min.jsselect2_locale_de.jsselect2_locale_en.js.templateselect2_locale_es.jsselect2_locale_eu.jsselect2_locale_fr.jsselect2_locale_hr.jsselect2_locale_hu.jsselect2_locale_it.jsselect2_locale_nl.jsselect2_locale_pt-BR.jsselect2_locale_pt-PT.jsselect2_locale_ro.jsselect2_locale_ru.jsselect2_locale_sk.jsselect2_locale_sv.jsselect2_locale_tr.jsselect2_locale_ua.jsselect2_locale_zh-CN.js
@ -55,7 +55,9 @@ Applied as jQuery method.
|
|||||||
'.ui-datepicker-header',
|
'.ui-datepicker-header',
|
||||||
'.modal-backdrop',
|
'.modal-backdrop',
|
||||||
'.bootstrap-wysihtml5-insert-image-modal',
|
'.bootstrap-wysihtml5-insert-image-modal',
|
||||||
'.bootstrap-wysihtml5-insert-link-modal'];
|
'.bootstrap-wysihtml5-insert-link-modal'
|
||||||
|
// '.select2-drop'
|
||||||
|
];
|
||||||
|
|
||||||
//if click inside one of exclude classes --> no nothing
|
//if click inside one of exclude classes --> no nothing
|
||||||
for(i=0; i<exclude_classes.length; i++) {
|
for(i=0; i<exclude_classes.length; i++) {
|
||||||
|
@ -1,12 +1,18 @@
|
|||||||
Copyright 2012 Igor Vaynberg
|
Copyright 2012 Igor Vaynberg
|
||||||
|
|
||||||
Version: @@ver@@ Timestamp: @@timestamp@@
|
Version: @@ver@@ Timestamp: @@timestamp@@
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in
|
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
|
||||||
compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
|
General Public License version 2 (the "GPL License"). You may choose either license to govern your
|
||||||
|
use of this software only upon the condition that you accept all of the terms of either the Apache
|
||||||
|
License or the GPL License.
|
||||||
|
|
||||||
|
You may obtain a copy of the Apache License and the GPL License at:
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
Unless required by applicable law or agreed to in writing, software distributed under the Apache License
|
||||||
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||||
See the License for the specific language governing permissions and limitations under the License.
|
either express or implied. See the Apache License and the GPL License for the specific language governing
|
||||||
|
permissions and limitations under the Apache License and the GPL License.
|
@ -1,23 +1,21 @@
|
|||||||
Select2
|
Select2
|
||||||
=================
|
=================
|
||||||
|
|
||||||
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Look and feel of Select2 is based on the excellent [Chosen](http://harvesthq.github.com/chosen/) library.
|
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
|
||||||
|
|
||||||
To get started -- checkout http://ivaynberg.github.com/select2!
|
To get started checkout examples and documentation at http://ivaynberg.github.com/select2
|
||||||
|
|
||||||
What Does Select2 Support That Chosen Does Not?
|
What Usecases Does Select2 Support
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
* Working with large datasets: Chosen requires the entire dataset to be loaded as `option` tags in the DOM, which limits
|
* Enhances native selects with search
|
||||||
it to working with small-ish datasets. Select2 uses a function to find results on-the-fly, which allows it to partially
|
* Enhances native selects with a better multi-select interface
|
||||||
load results.
|
* Loading data from javascript: easily load items via ajax and have them searchable
|
||||||
* Paging of results: Since Select2 works with large datasets and only loads a small amount of matching results at a time
|
* Nested optgroups: native selects only support one level of nested, Select2 does not have this restriction
|
||||||
it has to support paging. Select2 will call the search function when the user scrolls to the bottom of currently loaded
|
* Tagging: ability to add new items on the fly
|
||||||
result set allowing for the 'infinite scrolling' of results.
|
* Working with large remote datesets: ability to partially load a dataset based on the search term
|
||||||
* Custom markup for results: Chosen only supports rendering text results because that is the only markup supported by
|
* Paging of large datasets: easy support for loading more pages when the results are scrolled to the end
|
||||||
`option` tags. Select2 provides an extension point which can be used to produce any kind of markup to represent results.
|
* Templating: support for custom rendering of results and selections
|
||||||
* Ability to add results on the fly: Select2 provides the ability to add results from the search term entered by the user, which allows it to be used for
|
|
||||||
tagging.
|
|
||||||
|
|
||||||
Browser Compatibility
|
Browser Compatibility
|
||||||
--------------------
|
--------------------
|
||||||
@ -30,10 +28,21 @@ Browser Compatibility
|
|||||||
Integrations
|
Integrations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / Apache Wicket)
|
* [Wicket-Select2](https://github.com/ivaynberg/wicket-select2) (Java / [Apache Wicket](http://wicket.apache.org))
|
||||||
* [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails)
|
* [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails)
|
||||||
* [AngularUI](http://angular-ui.github.com/#directives-select2) ([AngularJS](angularjs.org))
|
* [AngularUI](http://angular-ui.github.com/#directives-select2) ([AngularJS](angularjs.org))
|
||||||
* [Django](https://github.com/applegrew/django-select2)
|
* [Django](https://github.com/applegrew/django-select2)
|
||||||
|
* [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin)
|
||||||
|
* [Bootstrap](https://github.com/t0m/select2-bootstrap-css) (CSS skin)
|
||||||
|
|
||||||
|
Internationalization (i18n)
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
Select2 supports multiple languages by simply including the right
|
||||||
|
language JS file (`select2_locale_it.js`, `select2_locale_nl.js` etc.).
|
||||||
|
|
||||||
|
Missing a language? Just copy `select2_locale_en.js.template`, translate
|
||||||
|
it and make a pull request back to Select2 here on Github.
|
||||||
|
|
||||||
Bug tracker
|
Bug tracker
|
||||||
-----------
|
-----------
|
||||||
@ -42,7 +51,6 @@ Have a bug? Please create an issue here on GitHub!
|
|||||||
|
|
||||||
https://github.com/ivaynberg/select2/issues
|
https://github.com/ivaynberg/select2/issues
|
||||||
|
|
||||||
|
|
||||||
Mailing list
|
Mailing list
|
||||||
------------
|
------------
|
||||||
|
|
||||||
@ -58,11 +66,17 @@ Copyright and License
|
|||||||
|
|
||||||
Copyright 2012 Igor Vaynberg
|
Copyright 2012 Igor Vaynberg
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in
|
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
|
||||||
compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
|
General Public License version 2 (the "GPL License"). You may choose either license to govern your
|
||||||
|
use of this software only upon the condition that you accept all of the terms of either the Apache
|
||||||
|
License or the GPL License.
|
||||||
|
|
||||||
|
You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
Unless required by applicable law or agreed to in writing, software distributed under the Apache License
|
||||||
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||||
See the License for the specific language governing permissions and limitations under the License.
|
either express or implied. See the Apache License and the GPL License for the specific language governing
|
||||||
|
permissions and limitations under the Apache License and the GPL License.
|
||||||
|
8
src/inputs/select2/lib/component.json
Normal file
8
src/inputs/select2/lib/component.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "select2",
|
||||||
|
"version": "3.3.2",
|
||||||
|
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "spinner.gif"],
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": "~1.4.4"
|
||||||
|
}
|
||||||
|
}
|
@ -15,13 +15,21 @@ js="$name.js"
|
|||||||
mini="$name.min.js"
|
mini="$name.min.js"
|
||||||
css="$name.css"
|
css="$name.css"
|
||||||
release="$name-$ver"
|
release="$name-$ver"
|
||||||
tag="release-$ver"
|
tag="$ver"
|
||||||
branch="build-$ver"
|
branch="build-$ver"
|
||||||
curbranch=`git branch | grep "*" | sed "s/* //"`
|
curbranch=`git branch | grep "*" | sed "s/* //"`
|
||||||
timestamp=$(date)
|
timestamp=$(date)
|
||||||
tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g"
|
tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g"
|
||||||
remote="github"
|
remote="github"
|
||||||
|
|
||||||
|
echo "Updating Version Identifiers"
|
||||||
|
|
||||||
|
sed -E -e "s/\"version\": \"([0-9\.]+)\",/\"version\": \"$ver\",/g" -i "" component.json select2.jquery.json
|
||||||
|
git add component.json
|
||||||
|
git add select2.jquery.json
|
||||||
|
git commit -m "modified version identifiers in descriptors for release $ver"
|
||||||
|
git push
|
||||||
|
|
||||||
git branch "$branch"
|
git branch "$branch"
|
||||||
git checkout "$branch"
|
git checkout "$branch"
|
||||||
|
|
||||||
@ -29,6 +37,7 @@ echo "Tokenizing..."
|
|||||||
|
|
||||||
find . -name "$js" | xargs -I{} sed -e "$tokens" -i "" {}
|
find . -name "$js" | xargs -I{} sed -e "$tokens" -i "" {}
|
||||||
find . -name "$css" | xargs -I{} sed -e "$tokens" -i "" {}
|
find . -name "$css" | xargs -I{} sed -e "$tokens" -i "" {}
|
||||||
|
sed -e "s/latest/$ver/g" -i "" component.json
|
||||||
|
|
||||||
git add "$js"
|
git add "$js"
|
||||||
git add "$css"
|
git add "$css"
|
||||||
@ -40,11 +49,8 @@ cat LICENSE | sed "$tokens" >> "$mini"
|
|||||||
echo "*/" >> "$mini"
|
echo "*/" >> "$mini"
|
||||||
|
|
||||||
curl -s \
|
curl -s \
|
||||||
-d compilation_level=SIMPLE_OPTIMIZATIONS \
|
|
||||||
-d output_format=text \
|
|
||||||
-d output_info=compiled_code \
|
|
||||||
--data-urlencode "js_code@$js" \
|
--data-urlencode "js_code@$js" \
|
||||||
http://closure-compiler.appspot.com/compile \
|
http://marijnhaverbeke.nl/uglifyjs \
|
||||||
>> "$mini"
|
>> "$mini"
|
||||||
|
|
||||||
git add "$mini"
|
git add "$mini"
|
||||||
|
Before ![]() (image error) Size: 1.8 KiB After ![]() (image error) Size: 1.8 KiB ![]() ![]() |
611
src/inputs/select2/lib/select2.css
vendored
611
src/inputs/select2/lib/select2.css
vendored
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
|
Version: 3.3.2 Timestamp: Mon Mar 25 12:14:18 PDT 2013
|
||||||
*/
|
*/
|
||||||
.select2-container {
|
.select2-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -7,7 +7,7 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
|
|||||||
/* inline-block for ie7 */
|
/* inline-block for ie7 */
|
||||||
zoom: 1;
|
zoom: 1;
|
||||||
*display: inline;
|
*display: inline;
|
||||||
vertical-align: top;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container,
|
.select2-container,
|
||||||
@ -20,52 +20,64 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
|
|||||||
|
|
||||||
More Info : http://www.quirksmode.org/css/box.html
|
More Info : http://www.quirksmode.org/css/box.html
|
||||||
*/
|
*/
|
||||||
-moz-box-sizing: border-box; /* firefox */
|
|
||||||
-ms-box-sizing: border-box; /* ie */
|
|
||||||
-webkit-box-sizing: border-box; /* webkit */
|
-webkit-box-sizing: border-box; /* webkit */
|
||||||
-khtml-box-sizing: border-box; /* konqueror */
|
-khtml-box-sizing: border-box; /* konqueror */
|
||||||
box-sizing: border-box; /* css3 */
|
-moz-box-sizing: border-box; /* firefox */
|
||||||
|
-ms-box-sizing: border-box; /* ie */
|
||||||
|
box-sizing: border-box; /* css3 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container .select2-choice {
|
.select2-container .select2-choice {
|
||||||
|
display: block;
|
||||||
|
height: 26px;
|
||||||
|
padding: 0 0 0 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
white-space: nowrap;
|
||||||
|
line-height: 26px;
|
||||||
|
color: #444;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
|
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
|
||||||
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
||||||
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
|
||||||
background-image: -o-linear-gradient(bottom, #eeeeee 0%, #ffffff 50%);
|
background-image: -o-linear-gradient(bottom, #eeeeee 0%, #ffffff 50%);
|
||||||
background-image: -ms-linear-gradient(top, #eeeeee 0%, #ffffff 50%);
|
background-image: -ms-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#ffffff', GradientType = 0);
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
|
||||||
background-image: linear-gradient(top, #eeeeee 0%, #ffffff 50%);
|
background-image: linear-gradient(top, #ffffff 0%, #eeeeee 50%);
|
||||||
-webkit-border-radius: 4px;
|
|
||||||
-moz-border-radius: 4px;
|
|
||||||
border-radius: 4px;
|
|
||||||
-moz-background-clip: padding;
|
|
||||||
-webkit-background-clip: padding-box;
|
|
||||||
background-clip: padding-box;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
display: block;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
position: relative;
|
|
||||||
height: 26px;
|
|
||||||
line-height: 26px;
|
|
||||||
padding: 0 0 0 8px;
|
|
||||||
color: #444;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container.select2-drop-above .select2-choice
|
.select2-container.select2-drop-above .select2-choice {
|
||||||
{
|
|
||||||
border-bottom-color: #aaa;
|
border-bottom-color: #aaa;
|
||||||
-webkit-border-radius:0px 0px 4px 4px;
|
|
||||||
-moz-border-radius:0px 0px 4px 4px;
|
-webkit-border-radius:0 0 4px 4px;
|
||||||
border-radius:0px 0px 4px 4px;
|
-moz-border-radius:0 0 4px 4px;
|
||||||
|
border-radius:0 0 4px 4px;
|
||||||
|
|
||||||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.9, white));
|
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.9, white));
|
||||||
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 90%);
|
background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 90%);
|
||||||
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 90%);
|
background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 90%);
|
||||||
background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 90%);
|
background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 90%);
|
||||||
background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 90%);
|
background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 90%);
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
|
||||||
background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
|
background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,114 +85,156 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
|
|||||||
margin-right: 26px;
|
margin-right: 26px;
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
-o-text-overflow: ellipsis;
|
|
||||||
-ms-text-overflow: ellipsis;
|
-ms-text-overflow: ellipsis;
|
||||||
text-overflow: ellipsis;
|
-o-text-overflow: ellipsis;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container .select2-choice abbr {
|
.select2-container .select2-choice abbr {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
width: 12px;
|
||||||
right: 26px;
|
height: 12px;
|
||||||
top: 8px;
|
position: absolute;
|
||||||
width: 12px;
|
right: 26px;
|
||||||
height: 12px;
|
top: 8px;
|
||||||
font-size: 1px;
|
|
||||||
background: url('select2.png') right top no-repeat;
|
font-size: 1px;
|
||||||
cursor: pointer;
|
text-decoration: none;
|
||||||
text-decoration: none;
|
|
||||||
border:0;
|
border: 0;
|
||||||
outline: 0;
|
background: url('select2.png') right top no-repeat;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: 0;
|
||||||
}
|
}
|
||||||
.select2-container .select2-choice abbr:hover {
|
.select2-container .select2-choice abbr:hover {
|
||||||
background-position: right -11px;
|
background-position: right -11px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-drop-mask {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: 9998;
|
||||||
|
background-color: #fff;
|
||||||
|
opacity: 0;
|
||||||
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* works in IE 8 */
|
||||||
|
filter: "alpha(opacity=0)"; /* expected to work in IE 8 */
|
||||||
|
filter: alpha(opacity=0); /* IE 4-7 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-drop {
|
.select2-drop {
|
||||||
|
width: 100%;
|
||||||
|
margin-top:-1px;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 9999;
|
||||||
|
top: 100%;
|
||||||
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #000;
|
color: #000;
|
||||||
border: 1px solid #aaa;
|
border: 1px solid #aaa;
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
|
||||||
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
|
||||||
-o-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
|
||||||
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
|
||||||
z-index: 9999;
|
|
||||||
width:100%;
|
|
||||||
margin-top:-1px;
|
|
||||||
|
|
||||||
-webkit-border-radius: 0 0 4px 4px;
|
-webkit-border-radius: 0 0 4px 4px;
|
||||||
-moz-border-radius: 0 0 4px 4px;
|
-moz-border-radius: 0 0 4px 4px;
|
||||||
border-radius: 0 0 4px 4px;
|
border-radius: 0 0 4px 4px;
|
||||||
|
|
||||||
|
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
||||||
|
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
||||||
|
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-drop.select2-drop-above {
|
.select2-drop.select2-drop-above {
|
||||||
-webkit-border-radius: 4px 4px 0px 0px;
|
margin-top: 1px;
|
||||||
-moz-border-radius: 4px 4px 0px 0px;
|
|
||||||
border-radius: 4px 4px 0px 0px;
|
|
||||||
margin-top:1px;
|
|
||||||
border-top: 1px solid #aaa;
|
border-top: 1px solid #aaa;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
|
|
||||||
|
-webkit-border-radius: 4px 4px 0 0;
|
||||||
|
-moz-border-radius: 4px 4px 0 0;
|
||||||
|
border-radius: 4px 4px 0 0;
|
||||||
|
|
||||||
-webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
-webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
||||||
-moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
-moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
||||||
-o-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
||||||
box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container .select2-choice div {
|
.select2-container .select2-choice div {
|
||||||
|
display: block;
|
||||||
|
width: 18px;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
|
||||||
|
border-left: 1px solid #aaa;
|
||||||
-webkit-border-radius: 0 4px 4px 0;
|
-webkit-border-radius: 0 4px 4px 0;
|
||||||
-moz-border-radius: 0 4px 4px 0;
|
-moz-border-radius: 0 4px 4px 0;
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
-moz-background-clip: padding;
|
|
||||||
-webkit-background-clip: padding-box;
|
-webkit-background-clip: padding-box;
|
||||||
background-clip: padding-box;
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
|
||||||
background: #ccc;
|
background: #ccc;
|
||||||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
|
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
|
||||||
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
||||||
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
|
||||||
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
|
background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
|
||||||
background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
|
background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#cccccc', endColorstr = '#eeeeee', GradientType = 0);
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
|
||||||
background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
|
background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
|
||||||
border-left: 1px solid #aaa;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
display: block;
|
|
||||||
height: 100%;
|
|
||||||
width: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container .select2-choice div b {
|
.select2-container .select2-choice div b {
|
||||||
background: url('select2.png') no-repeat 0 1px;
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
background: url('select2.png') no-repeat 0 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-search {
|
.select2-search {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
width: 100%;
|
||||||
|
min-height: 26px;
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
|
||||||
|
position: relative;
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
min-height: 26px;
|
|
||||||
width: 100%;
|
white-space: nowrap;
|
||||||
margin: 0;
|
|
||||||
padding-left: 4px;
|
|
||||||
padding-right: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-search-hidden {
|
.select2-search-hidden {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: -10000px;
|
left: -10000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-search input {
|
.select2-search input {
|
||||||
|
width: 100%;
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 26px;
|
||||||
|
padding: 4px 20px 4px 5px;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
outline: 0;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
-webkit-border-radius: 0;
|
||||||
|
-moz-border-radius: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
background: #fff url('select2.png') no-repeat 100% -22px;
|
background: #fff url('select2.png') no-repeat 100% -22px;
|
||||||
background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
||||||
background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
||||||
@ -188,92 +242,78 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
|
|||||||
background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
||||||
background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
||||||
background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
||||||
padding: 4px 20px 4px 5px;
|
|
||||||
outline: 0;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 1em;
|
|
||||||
width:100%;
|
|
||||||
margin:0;
|
|
||||||
height:auto !important;
|
|
||||||
min-height: 26px;
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
-moz-box-shadow: none;
|
|
||||||
box-shadow: none;
|
|
||||||
border-radius: 0;
|
|
||||||
-moz-border-radius: 0;
|
|
||||||
-webkit-border-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-drop.select2-drop-above .select2-search input
|
.select2-drop.select2-drop-above .select2-search input {
|
||||||
{
|
margin-top: 4px;
|
||||||
margin-top:4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-search input.select2-active {
|
.select2-search input.select2-active {
|
||||||
background: #fff url('spinner.gif') no-repeat 100%;
|
background: #fff url('select2-spinner.gif') no-repeat 100%;
|
||||||
background: url('spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
|
||||||
background: url('spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
||||||
background: url('spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
|
||||||
background: url('spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
background: url('select2-spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
|
||||||
background: url('spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
background: url('select2-spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
||||||
background: url('spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.select2-container-active .select2-choice,
|
.select2-container-active .select2-choice,
|
||||||
.select2-container-active .select2-choices {
|
.select2-container-active .select2-choices {
|
||||||
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
border: 1px solid #5897fb;
|
border: 1px solid #5897fb;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
|
-moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
|
box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-dropdown-open .select2-choice {
|
.select2-dropdown-open .select2-choice {
|
||||||
border: 1px solid #aaa;
|
border-bottom-color: transparent;
|
||||||
border-bottom-color: transparent;
|
-webkit-box-shadow: 0 1px 0 #fff inset;
|
||||||
-webkit-box-shadow: 0 1px 0 #fff inset;
|
-moz-box-shadow: 0 1px 0 #fff inset;
|
||||||
-moz-box-shadow : 0 1px 0 #fff inset;
|
box-shadow: 0 1px 0 #fff inset;
|
||||||
-o-box-shadow : 0 1px 0 #fff inset;
|
|
||||||
box-shadow : 0 1px 0 #fff inset;
|
-webkit-border-bottom-left-radius: 0;
|
||||||
background-color: #eee;
|
-moz-border-radius-bottomleft: 0;
|
||||||
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
|
border-bottom-left-radius: 0;
|
||||||
background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
|
||||||
background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
-webkit-border-bottom-right-radius: 0;
|
||||||
background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
|
-moz-border-radius-bottomright: 0;
|
||||||
background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
border-bottom-right-radius: 0;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
|
|
||||||
background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
background-color: #eee;
|
||||||
-webkit-border-bottom-left-radius : 0;
|
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
|
||||||
-webkit-border-bottom-right-radius: 0;
|
background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
||||||
-moz-border-radius-bottomleft : 0;
|
background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
|
||||||
-moz-border-radius-bottomright: 0;
|
background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
|
||||||
border-bottom-left-radius : 0;
|
background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
||||||
border-bottom-right-radius: 0;
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
|
||||||
|
background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-dropdown-open .select2-choice div {
|
.select2-dropdown-open .select2-choice div {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
filter: none;
|
||||||
}
|
}
|
||||||
.select2-dropdown-open .select2-choice div b {
|
.select2-dropdown-open .select2-choice div b {
|
||||||
background-position: -18px 1px;
|
background-position: -18px 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* results */
|
/* results */
|
||||||
.select2-results {
|
.select2-results {
|
||||||
margin: 4px 4px 4px 0;
|
max-height: 200px;
|
||||||
padding: 0 0 0 4px;
|
padding: 0 0 0 4px;
|
||||||
position: relative;
|
margin: 4px 4px 4px 0;
|
||||||
overflow-x: hidden;
|
position: relative;
|
||||||
overflow-y: auto;
|
overflow-x: hidden;
|
||||||
max-height: 200px;
|
overflow-y: auto;
|
||||||
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results ul.select2-result-sub {
|
.select2-results ul.select2-result-sub {
|
||||||
margin: 0 0 0 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
|
.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
|
||||||
@ -285,40 +325,60 @@ Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012
|
|||||||
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
|
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
|
||||||
|
|
||||||
.select2-results li {
|
.select2-results li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: list-item;
|
display: list-item;
|
||||||
|
background-image: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results li.select2-result-with-children > .select2-result-label {
|
.select2-results li.select2-result-with-children > .select2-result-label {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results .select2-result-label {
|
.select2-results .select2-result-label {
|
||||||
padding: 3px 7px 4px;
|
padding: 3px 7px 4px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
min-height: 1em;
|
||||||
|
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results .select2-highlighted {
|
.select2-results .select2-highlighted {
|
||||||
background: #3875d7;
|
background: #3875d7;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results li em {
|
.select2-results li em {
|
||||||
background: #feffde;
|
background: #feffde;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-results .select2-highlighted em {
|
.select2-results .select2-highlighted em {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.select2-results .select2-highlighted ul {
|
||||||
|
background: white;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.select2-results .select2-no-results,
|
.select2-results .select2-no-results,
|
||||||
.select2-results .select2-searching,
|
.select2-results .select2-searching,
|
||||||
.select2-results .select2-selection-limit {
|
.select2-results .select2-selection-limit {
|
||||||
background: #f4f4f4;
|
background: #f4f4f4;
|
||||||
display: list-item;
|
display: list-item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
disabled look for already selected choices in the results dropdown
|
disabled look for disabled choices in the results dropdown
|
||||||
|
*/
|
||||||
.select2-results .select2-disabled.select2-highlighted {
|
.select2-results .select2-disabled.select2-highlighted {
|
||||||
color: #666;
|
color: #666;
|
||||||
background: #f4f4f4;
|
background: #f4f4f4;
|
||||||
@ -330,18 +390,18 @@ disabled look for already selected choices in the results dropdown
|
|||||||
display: list-item;
|
display: list-item;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
.select2-results .select2-disabled {
|
.select2-results .select2-selected {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-more-results.select2-active {
|
.select2-more-results.select2-active {
|
||||||
background: #f4f4f4 url('spinner.gif') no-repeat 100%;
|
background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-more-results {
|
.select2-more-results {
|
||||||
background: #f4f4f4;
|
background: #f4f4f4;
|
||||||
display: list-item;
|
display: list-item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* disabled styles */
|
/* disabled styles */
|
||||||
@ -359,25 +419,35 @@ disabled look for already selected choices in the results dropdown
|
|||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.select2-container.select2-container-disabled .select2-choice abbr {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* multiselect */
|
/* multiselect */
|
||||||
|
|
||||||
.select2-container-multi .select2-choices {
|
.select2-container-multi .select2-choices {
|
||||||
|
height: auto !important;
|
||||||
|
height: 1%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
cursor: text;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
border: 1px solid #aaa;
|
}
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
.select2-locked {
|
||||||
cursor: text;
|
padding: 3px 5px 3px 5px !important;
|
||||||
overflow: hidden;
|
|
||||||
height: auto !important;
|
|
||||||
height: 1%;
|
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi .select2-choices {
|
.select2-container-multi .select2-choices {
|
||||||
@ -385,106 +455,116 @@ disabled look for already selected choices in the results dropdown
|
|||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi.select2-container-active .select2-choices {
|
.select2-container-multi.select2-container-active .select2-choices {
|
||||||
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
|
||||||
border: 1px solid #5897fb;
|
border: 1px solid #5897fb;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
|
-moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
|
box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
}
|
}
|
||||||
.select2-container-multi .select2-choices li {
|
.select2-container-multi .select2-choices li {
|
||||||
float: left;
|
float: left;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
.select2-container-multi .select2-choices .select2-search-field {
|
.select2-container-multi .select2-choices .select2-search-field {
|
||||||
white-space: nowrap;
|
margin: 0;
|
||||||
margin: 0;
|
padding: 0;
|
||||||
padding: 0;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi .select2-choices .select2-search-field input {
|
.select2-container-multi .select2-choices .select2-search-field input {
|
||||||
color: #666;
|
padding: 5px;
|
||||||
background: transparent !important;
|
margin: 1px 0;
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 100%;
|
font-family: sans-serif;
|
||||||
height: 15px;
|
font-size: 100%;
|
||||||
padding: 5px;
|
color: #666;
|
||||||
margin: 1px 0;
|
outline: 0;
|
||||||
outline: 0;
|
border: 0;
|
||||||
border: 0;
|
-webkit-box-shadow: none;
|
||||||
-webkit-box-shadow: none;
|
-moz-box-shadow: none;
|
||||||
-moz-box-shadow : none;
|
box-shadow: none;
|
||||||
-o-box-shadow : none;
|
background: transparent !important;
|
||||||
box-shadow : none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi .select2-choices .select2-search-field input.select2-active {
|
.select2-container-multi .select2-choices .select2-search-field input.select2-active {
|
||||||
background: #fff url('spinner.gif') no-repeat 100% !important;
|
background: #fff url('select2-spinner.gif') no-repeat 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-default {
|
.select2-default {
|
||||||
color: #999 !important;
|
color: #999 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi .select2-choices .select2-search-choice {
|
.select2-container-multi .select2-choices .select2-search-choice {
|
||||||
-webkit-border-radius: 3px;
|
padding: 3px 5px 3px 18px;
|
||||||
-moz-border-radius : 3px;
|
margin: 3px 0 3px 5px;
|
||||||
border-radius : 3px;
|
position: relative;
|
||||||
-moz-background-clip : padding;
|
|
||||||
-webkit-background-clip: padding-box;
|
line-height: 13px;
|
||||||
background-clip : padding-box;
|
color: #333;
|
||||||
background-color: #e4e4e4;
|
cursor: default;
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
|
border: 1px solid #aaaaaa;
|
||||||
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
|
||||||
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
-webkit-border-radius: 3px;
|
||||||
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
-moz-border-radius: 3px;
|
||||||
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
border-radius: 3px;
|
||||||
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
|
||||||
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
||||||
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
-moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
||||||
-moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
||||||
box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
|
||||||
color: #333;
|
-webkit-background-clip: padding-box;
|
||||||
border: 1px solid #aaaaaa;
|
-moz-background-clip: padding;
|
||||||
line-height: 13px;
|
background-clip: padding-box;
|
||||||
padding: 3px 5px 3px 18px;
|
|
||||||
margin: 3px 0 3px 5px;
|
-webkit-touch-callout: none;
|
||||||
position: relative;
|
-webkit-user-select: none;
|
||||||
cursor: default;
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
background-color: #e4e4e4;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0 );
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
}
|
}
|
||||||
.select2-container-multi .select2-choices .select2-search-choice span {
|
.select2-container-multi .select2-choices .select2-search-choice span {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
.select2-container-multi .select2-choices .select2-search-choice-focus {
|
.select2-container-multi .select2-choices .select2-search-choice-focus {
|
||||||
background: #d4d4d4;
|
background: #d4d4d4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-search-choice-close {
|
.select2-search-choice-close {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
width: 12px;
|
||||||
right: 3px;
|
height: 13px;
|
||||||
top: 4px;
|
position: absolute;
|
||||||
width: 12px;
|
right: 3px;
|
||||||
height: 13px;
|
top: 4px;
|
||||||
font-size: 1px;
|
|
||||||
background: url('select2.png') right top no-repeat;
|
font-size: 1px;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
background: url('select2.png') right top no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi .select2-search-choice-close {
|
.select2-container-multi .select2-search-choice-close {
|
||||||
left: 3px;
|
left: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
|
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
|
||||||
background-position: right -11px;
|
background-position: right -11px;
|
||||||
}
|
}
|
||||||
.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
|
.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
|
||||||
background-position: right -11px;
|
background-position: right -11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* disabled styles */
|
/* disabled styles */
|
||||||
|
|
||||||
.select2-container-multi.select2-container-disabled .select2-choices{
|
.select2-container-multi.select2-container-disabled .select2-choices{
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
@ -493,10 +573,10 @@ disabled look for already selected choices in the results dropdown
|
|||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
|
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
|
||||||
|
padding: 3px 5px 3px 5px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
border: 1px solid #ddd;
|
|
||||||
padding: 3px 5px 3px 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
|
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
|
||||||
@ -504,21 +584,32 @@ disabled look for already selected choices in the results dropdown
|
|||||||
}
|
}
|
||||||
/* end multiselect */
|
/* end multiselect */
|
||||||
|
|
||||||
.select2-result-selectable .select2-match,
|
|
||||||
.select2-result-unselectable .select2-result-selectable .select2-match { text-decoration: underline; }
|
|
||||||
.select2-result-unselectable .select2-match { text-decoration: none; }
|
|
||||||
|
|
||||||
.select2-offscreen { position: absolute; left: -10000px; }
|
.select2-result-selectable .select2-match,
|
||||||
|
.select2-result-unselectable .select2-match {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select2-offscreen {
|
||||||
|
border: 0;
|
||||||
|
clip: rect(0 0 0 0);
|
||||||
|
height: 1px;
|
||||||
|
margin: -1px;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0;
|
||||||
|
position: absolute;
|
||||||
|
width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Retina-ize icons */
|
/* Retina-ize icons */
|
||||||
|
|
||||||
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
|
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
|
||||||
.select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
|
.select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
|
||||||
background-image: url(select2x2.png) !important;
|
background-image: url('select2x2.png') !important;
|
||||||
background-repeat: no-repeat !important;
|
background-repeat: no-repeat !important;
|
||||||
background-size: 60px 40px !important;
|
background-size: 60px 40px !important;
|
||||||
}
|
}
|
||||||
.select2-search input {
|
.select2-search input {
|
||||||
background-position: 100% -21px !important;
|
background-position: 100% -21px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
36
src/inputs/select2/lib/select2.jquery.json
Normal file
36
src/inputs/select2/lib/select2.jquery.json
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"name": "select2",
|
||||||
|
"title": "Select2",
|
||||||
|
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.",
|
||||||
|
"keywords": [
|
||||||
|
"select",
|
||||||
|
"autocomplete",
|
||||||
|
"typeahead",
|
||||||
|
"dropdown",
|
||||||
|
"multiselect",
|
||||||
|
"tag",
|
||||||
|
"tagging"
|
||||||
|
],
|
||||||
|
"version": "3.3.2",
|
||||||
|
"author": {
|
||||||
|
"name": "Igor Vaynberg",
|
||||||
|
"url": "https://github.com/ivaynberg"
|
||||||
|
},
|
||||||
|
"licenses": [
|
||||||
|
{
|
||||||
|
"type": "Apache",
|
||||||
|
"url": "http://www.apache.org/licenses/LICENSE-2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "GPL v2",
|
||||||
|
"url": "http://www.gnu.org/licenses/gpl-2.0.html"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"bugs": "https://github.com/ivaynberg/select2/issues",
|
||||||
|
"homepage": "http://ivaynberg.github.com/select2",
|
||||||
|
"docs": "http://ivaynberg.github.com/select2/",
|
||||||
|
"download": "https://github.com/ivaynberg/select2/tags",
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": ">=1.4.6"
|
||||||
|
}
|
||||||
|
}
|
1247
src/inputs/select2/lib/select2.js
vendored
1247
src/inputs/select2/lib/select2.js
vendored
File diff suppressed because it is too large
Load Diff
90
src/inputs/select2/lib/select2.min.js
vendored
90
src/inputs/select2/lib/select2.min.js
vendored
File diff suppressed because one or more lines are too long
15
src/inputs/select2/lib/select2_locale_de.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_de.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 German translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Keine Übereinstimmungen gefunden"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeben"; },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Bitte " + n + " Zeichen weniger eingeben"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse..."; },
|
||||||
|
formatSearching: function () { return "Suche..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
17
src/inputs/select2/lib/select2_locale_en.js.template
Normal file
17
src/inputs/select2/lib/select2_locale_en.js.template
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* Select2 <Language> translation.
|
||||||
|
*
|
||||||
|
* Author: Your Name <your@email>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "No matches found"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1 ? "" : "s"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Please enter " + n + " less character" + (n == 1? "" : "s"); },
|
||||||
|
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Loading more results..."; },
|
||||||
|
formatSearching: function () { return "Searching..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_es.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_es.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Spanish translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "No se encontraron resultados"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor adicione " + n + " caracter" + (n == 1? "" : "es"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor elimine " + n + " caracter" + (n == 1? "" : "es"); },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Solo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Cargando más resultados..."; },
|
||||||
|
formatSearching: function () { return "Buscando..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
43
src/inputs/select2/lib/select2_locale_eu.js
vendored
Normal file
43
src/inputs/select2/lib/select2_locale_eu.js
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Basque translation.
|
||||||
|
*
|
||||||
|
* Author: Julen Ruiz Aizpuru <julenx at gmail dot com>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () {
|
||||||
|
return "Ez da bat datorrenik aurkitu";
|
||||||
|
},
|
||||||
|
formatInputTooShort: function (input, min) {
|
||||||
|
var n = min - input.length;
|
||||||
|
if (n === 1) {
|
||||||
|
return "Idatzi karaktere bat gehiago";
|
||||||
|
} else {
|
||||||
|
return "Idatzi " + n + " karaktere gehiago";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatInputTooLong: function (input, max) {
|
||||||
|
var n = input.length - max;
|
||||||
|
if (n === 1) {
|
||||||
|
return "Idatzi karaktere bat gutxiago";
|
||||||
|
} else {
|
||||||
|
return "Idatzi " + n + " karaktere gutxiago";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatSelectionTooBig: function (limit) {
|
||||||
|
if (limit === 1 ) {
|
||||||
|
return "Elementu bakarra hauta dezakezu";
|
||||||
|
} else {
|
||||||
|
return limit + " elementu hauta ditzakezu soilik";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatLoadMore: function (pageNumber) {
|
||||||
|
return "Emaitza gehiago kargatzen...";
|
||||||
|
},
|
||||||
|
formatSearching: function () {
|
||||||
|
return "Bilatzen...";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_fr.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_fr.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 French translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Aucun résultat trouvé"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caractère" + (n == 1? "" : "s") + " de plus"; },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Merci de saisir " + n + " caractère" + (n == 1? "" : "s") + " de moins"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires..."; },
|
||||||
|
formatSearching: function () { return "Recherche en cours..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
42
src/inputs/select2/lib/select2_locale_hr.js
vendored
Normal file
42
src/inputs/select2/lib/select2_locale_hr.js
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Croatian translation.
|
||||||
|
*
|
||||||
|
* Author: Edi Modrić <edi.modric@gmail.com>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var specialNumbers = {
|
||||||
|
1: function(n) { return (n % 100 != 11 ? "znak" : "znakova"); },
|
||||||
|
2: function(n) { return (n % 100 != 12 ? "znaka" : "znakova"); },
|
||||||
|
3: function(n) { return (n % 100 != 13 ? "znaka" : "znakova"); },
|
||||||
|
4: function(n) { return (n % 100 != 14 ? "znaka" : "znakova"); }
|
||||||
|
};
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nema rezultata"; },
|
||||||
|
formatInputTooShort: function (input, min) {
|
||||||
|
var n = min - input.length;
|
||||||
|
var nMod10 = n % 10;
|
||||||
|
|
||||||
|
if (nMod10 > 0 && nMod10 < 5) {
|
||||||
|
return "Unesite još " + n + " " + specialNumbers[nMod10](n);
|
||||||
|
}
|
||||||
|
|
||||||
|
return "Unesite još " + n + " znakova";
|
||||||
|
},
|
||||||
|
formatInputTooLong: function (input, max) {
|
||||||
|
var n = input.length - max;
|
||||||
|
var nMod10 = n % 10;
|
||||||
|
|
||||||
|
if (nMod10 > 0 && nMod10 < 5) {
|
||||||
|
return "Unesite " + n + " " + specialNumbers[nMod10](n) + " manje";
|
||||||
|
}
|
||||||
|
|
||||||
|
return "Unesite " + n + " znakova manje";
|
||||||
|
},
|
||||||
|
formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata..."; },
|
||||||
|
formatSearching: function () { return "Pretraga..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_hu.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_hu.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Hungarian translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nincs találat."; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Túl rövid. Még " + n + " karakter hiányzik."; },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Túl hosszú. " + n + " kerekterrel több mint kellene."; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Csak " + limit + " elemet lehet kiválasztani."; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Töltés..."; },
|
||||||
|
formatSearching: function () { return "Keresés..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_it.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_it.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Italian translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Caricamento in corso..."; },
|
||||||
|
formatSearching: function () { return "Ricerca..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_nl.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_nl.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Dutch translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Geen resultaten gevonden"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " meer in"; },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " minder in"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Meer resultaten laden..."; },
|
||||||
|
formatSearching: function () { return "Zoeken..."; },
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_pt-BR.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_pt-BR.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Brazilian Portuguese translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caracter" + (n == 1? "" : "es"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Carregando mais resultados..."; },
|
||||||
|
formatSearching: function () { return "Buscando..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_pt-PT.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_pt-PT.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Portuguese (Portugal) translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nenhum resultado encontrado"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " caracter" + (n == 1 ? "" : "es"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1 ? "" : "es"); },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "A carregar mais resultados..."; },
|
||||||
|
formatSearching: function () { return "A pesquisar..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_ro.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_ro.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Romanian translation.
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nu a fost găsit nimic"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vă rugăm să introduceți mai puțin de " + n + " caracter" + (n == 1? "" : "e"); },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 1 ? "" : "e"); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Se încarcă..."; },
|
||||||
|
formatSearching: function () { return "Căutare..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
15
src/inputs/select2/lib/select2_locale_ru.js
vendored
Normal file
15
src/inputs/select2/lib/select2_locale_ru.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Russian translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Совпадений не найдено"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Пожалуйста, введите еще " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5) ? "а" : "ов")); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Пожалуйста, введите на " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5)? "а" : "ов")) + " меньше"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit == 1 ? "" : ((limit > 1)&&(limit < 5)? "а" : "ов")); },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Загрузка данных..."; },
|
||||||
|
formatSearching: function () { return "Поиск..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
48
src/inputs/select2/lib/select2_locale_sk.js
vendored
Normal file
48
src/inputs/select2/lib/select2_locale_sk.js
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Slovak translation.
|
||||||
|
*
|
||||||
|
* Author: David Vallner <david@vallner.net>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
// use text for the numbers 2 through 4
|
||||||
|
var smallNumbers = {
|
||||||
|
2: function(masc) { return (masc ? "dva" : "dve"); },
|
||||||
|
3: function() { return "tri"; },
|
||||||
|
4: function() { return "štyri"; }
|
||||||
|
}
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Nenašli sa žiadne položky"; },
|
||||||
|
formatInputTooShort: function (input, min) {
|
||||||
|
var n = min - input.length;
|
||||||
|
if (n == 1) {
|
||||||
|
return "Prosím zadajte ešte jeden znak";
|
||||||
|
} else if (n <= 4) {
|
||||||
|
return "Prosím zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky";
|
||||||
|
} else {
|
||||||
|
return "Prosím zadajte ešte ďalších "+n+" znakov";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatInputTooLong: function (input, max) {
|
||||||
|
var n = input.length - max;
|
||||||
|
if (n == 1) {
|
||||||
|
return "Prosím zadajte o jeden znak menej";
|
||||||
|
} else if (n <= 4) {
|
||||||
|
return "Prosím zadajte o "+smallNumbers[n](true)+" znaky menej";
|
||||||
|
} else {
|
||||||
|
return "Prosím zadajte o "+n+" znakov menej";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatSelectionTooBig: function (limit) {
|
||||||
|
if (limit == 1) {
|
||||||
|
return "Môžete zvoliť len jednu položku";
|
||||||
|
} else if (limit <= 4) {
|
||||||
|
return "Môžete zvoliť najviac "+smallNumbers[limit](false)+" položky";
|
||||||
|
} else {
|
||||||
|
return "Môžete zvoliť najviac "+limit+" položiek";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky..."; },
|
||||||
|
formatSearching: function () { return "Vyhľadávanie..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
17
src/inputs/select2/lib/select2_locale_sv.js
vendored
Normal file
17
src/inputs/select2/lib/select2_locale_sv.js
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Swedish translation.
|
||||||
|
*
|
||||||
|
* Author: Jens Rantil <jens.rantil@telavox.com>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Inga träffar"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Var god sudda ut " + n + " tecken"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Laddar fler resultat..."; },
|
||||||
|
formatSearching: function () { return "Söker..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
17
src/inputs/select2/lib/select2_locale_tr.js
vendored
Normal file
17
src/inputs/select2/lib/select2_locale_tr.js
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Turkish translation.
|
||||||
|
*
|
||||||
|
* Author: Salim KAYABAŞI <salim.kayabasi@gmail.com>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Sonuç bulunamadı"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " karakter azaltmalısınız"; },
|
||||||
|
formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Daha fazla ..."; },
|
||||||
|
formatSearching: function () { return "Aranıyor..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
17
src/inputs/select2/lib/select2_locale_ua.js
vendored
Normal file
17
src/inputs/select2/lib/select2_locale_ua.js
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* Select2 <Language> translation.
|
||||||
|
*
|
||||||
|
* Author: bigmihail <bigmihail@bigmir.net>
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "Нічого не знайдено"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка ще " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ]; },
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка на " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ] + " менше"; },
|
||||||
|
formatSelectionTooBig: function (limit) {var s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Ви можете вибрати лише " + limit + " елемент" + s[ (limit%100>4 && limit%100<=20)? 2 : p[Math.min(limit%10, 5)] ]; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "Завантаження даних..."; },
|
||||||
|
formatSearching: function () { return "Пошук..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
14
src/inputs/select2/lib/select2_locale_zh-CN.js
vendored
Normal file
14
src/inputs/select2/lib/select2_locale_zh-CN.js
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* Select2 Chinese translation
|
||||||
|
*/
|
||||||
|
(function ($) {
|
||||||
|
"use strict";
|
||||||
|
$.extend($.fn.select2.defaults, {
|
||||||
|
formatNoMatches: function () { return "没有找到匹配项"; },
|
||||||
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
|
||||||
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
|
||||||
|
formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
|
||||||
|
formatLoadMore: function (pageNumber) { return "加载结果中..."; },
|
||||||
|
formatSearching: function () { return "搜索中..."; }
|
||||||
|
});
|
||||||
|
})(jQuery);
|
Loading…
x
Reference in New Issue
Block a user