Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the issues we had with tag autocomplete. Conflicts: ckan/public/base/vendor/select2/select2.css ckan/public/base/vendor/select2/select2.js ckan/public/base/vendor/select2/select2.min.js
- Loading branch information
Showing
57 changed files
with
1,698 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Copyright 2014 Igor Vaynberg | ||
|
||
Version: @@ver@@ Timestamp: @@timestamp@@ | ||
|
||
This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU | ||
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.gnu.org/licenses/gpl-2.0.html | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed under the Apache License | ||
or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "select2", | ||
"version": "3.4.8", | ||
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "select2-spinner.gif"], | ||
"dependencies": { | ||
"jquery": ">= 1.7.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"name": "select2", | ||
"repo": "ivaynberg/select2", | ||
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.", | ||
"version": "3.4.8", | ||
"demo": "http://ivaynberg.github.io/select2/", | ||
"keywords": [ | ||
"jquery" | ||
], | ||
"main": "select2.js", | ||
"styles": [ | ||
"select2.css", | ||
"select2-bootstrap.css" | ||
], | ||
"scripts": [ | ||
"select2.js", | ||
"select2_locale_ar.js", | ||
"select2_locale_bg.js", | ||
"select2_locale_ca.js", | ||
"select2_locale_cs.js", | ||
"select2_locale_da.js", | ||
"select2_locale_de.js", | ||
"select2_locale_el.js", | ||
"select2_locale_es.js", | ||
"select2_locale_et.js", | ||
"select2_locale_eu.js", | ||
"select2_locale_fa.js", | ||
"select2_locale_fi.js", | ||
"select2_locale_fr.js", | ||
"select2_locale_gl.js", | ||
"select2_locale_he.js", | ||
"select2_locale_hr.js", | ||
"select2_locale_hu.js", | ||
"select2_locale_id.js", | ||
"select2_locale_is.js", | ||
"select2_locale_it.js", | ||
"select2_locale_ja.js", | ||
"select2_locale_ka.js", | ||
"select2_locale_ko.js", | ||
"select2_locale_lt.js", | ||
"select2_locale_lv.js", | ||
"select2_locale_mk.js", | ||
"select2_locale_ms.js", | ||
"select2_locale_nl.js", | ||
"select2_locale_no.js", | ||
"select2_locale_pl.js", | ||
"select2_locale_pt-BR.js", | ||
"select2_locale_pt-PT.js", | ||
"select2_locale_ro.js", | ||
"select2_locale_ru.js", | ||
"select2_locale_sk.js", | ||
"select2_locale_sv.js", | ||
"select2_locale_th.js", | ||
"select2_locale_tr.js", | ||
"select2_locale_uk.js", | ||
"select2_locale_vi.js", | ||
"select2_locale_zh-CN.js", | ||
"select2_locale_zh-TW.js" | ||
], | ||
"images": [ | ||
"select2-spinner.gif", | ||
"select2.png", | ||
"select2x2.png" | ||
], | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": | ||
"ivaynberg/select2", | ||
"description": "Select2 is a jQuery based replacement for select boxes.", | ||
"version": "3.4.8", | ||
"type": "component", | ||
"homepage": "http://ivaynberg.github.io/select2/", | ||
"license": "Apache-2.0", | ||
"require": { | ||
"robloach/component-installer": "*", | ||
"components/jquery": ">=1.7.1" | ||
}, | ||
"extra": { | ||
"component": { | ||
"scripts": [ | ||
"select2.js" | ||
], | ||
"files": [ | ||
"select2.js", | ||
"select2_locale_*.js", | ||
"select2.css", | ||
"select2-bootstrap.css", | ||
"select2-spinner.gif", | ||
"select2.png", | ||
"select2x2.png" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name" : "Select2", | ||
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.", | ||
"homepage": "http://ivaynberg.github.io/select2", | ||
"author": "Igor Vaynberg", | ||
"repository": {"type": "git", "url": "git://github.com/ivaynberg/select2.git"}, | ||
"main": "select2.js", | ||
"version": "3.4.8", | ||
"jspm": { | ||
"main": "select2", | ||
"files": ["select2.js", "select2.png", "select2.css", "select2-spinner.gif"], | ||
"shim": { | ||
"select2": { | ||
"imports": ["jquery", "./select2.css!"], | ||
"exports": "$" | ||
} | ||
}, | ||
"buildConfig": { "uglify": true } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo -n "Enter the version for this release: " | ||
|
||
read ver | ||
|
||
if [ ! $ver ]; then | ||
echo "Invalid version." | ||
exit | ||
fi | ||
|
||
name="select2" | ||
js="$name.js" | ||
mini="$name.min.js" | ||
css="$name.css" | ||
release="$name-$ver" | ||
tag="$ver" | ||
branch="build-$ver" | ||
curbranch=`git branch | grep "*" | sed "s/* //"` | ||
timestamp=$(date) | ||
tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g" | ||
remote="github" | ||
|
||
echo "Pulling from origin" | ||
|
||
git pull | ||
|
||
echo "Updating Version Identifiers" | ||
|
||
sed -E -e "s/\"version\": \"([0-9\.]+)\",/\"version\": \"$ver\",/g" -i -- bower.json select2.jquery.json component.json composer.json package.json | ||
|
||
git add bower.json | ||
git add select2.jquery.json | ||
git add component.json | ||
git add composer.json | ||
git add package.json | ||
|
||
git commit -m "modified version identifiers in descriptors for release $ver" | ||
git push | ||
|
||
git branch "$branch" | ||
git checkout "$branch" | ||
|
||
echo "Tokenizing..." | ||
|
||
find . -name "$js" | xargs -I{} sed -e "$tokens" -i -- {} | ||
find . -name "$css" | xargs -I{} sed -e "$tokens" -i -- {} | ||
|
||
sed -e "s/latest/$ver/g" -i -- bower.json | ||
|
||
git add "$js" | ||
git add "$css" | ||
|
||
echo "Minifying..." | ||
|
||
echo "/*" > "$mini" | ||
cat LICENSE | sed "$tokens" >> "$mini" | ||
echo "*/" >> "$mini" | ||
|
||
curl -s \ | ||
--data-urlencode "js_code@$js" \ | ||
http://marijnhaverbeke.nl/uglifyjs \ | ||
>> "$mini" | ||
|
||
git add "$mini" | ||
|
||
git commit -m "release $ver" | ||
|
||
echo "Tagging..." | ||
git tag -a "$tag" -m "tagged version $ver" | ||
git push "$remote" --tags | ||
|
||
echo "Cleaning Up..." | ||
|
||
git checkout "$curbranch" | ||
git branch -D "$branch" | ||
|
||
echo "Done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.form-control .select2-choice { | ||
border: 0; | ||
border-radius: 2px; | ||
} | ||
|
||
.form-control .select2-choice .select2-arrow { | ||
border-radius: 0 2px 2px 0; | ||
} | ||
|
||
.form-control.select2-container { | ||
height: auto !important; | ||
padding: 0; | ||
} | ||
|
||
.form-control.select2-container.select2-dropdown-open { | ||
border-color: #5897FB; | ||
border-radius: 3px 3px 0 0; | ||
} | ||
|
||
.form-control .select2-container.select2-dropdown-open .select2-choices { | ||
border-radius: 3px 3px 0 0; | ||
} | ||
|
||
.form-control.select2-container .select2-choices { | ||
border: 0 !important; | ||
border-radius: 3px; | ||
} | ||
|
||
.control-group.warning .select2-container .select2-choice, | ||
.control-group.warning .select2-container .select2-choices, | ||
.control-group.warning .select2-container-active .select2-choice, | ||
.control-group.warning .select2-container-active .select2-choices, | ||
.control-group.warning .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.warning .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.warning .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #C09853 !important; | ||
} | ||
|
||
.control-group.warning .select2-container .select2-choice div { | ||
border-left: 1px solid #C09853 !important; | ||
background: #FCF8E3 !important; | ||
} | ||
|
||
.control-group.error .select2-container .select2-choice, | ||
.control-group.error .select2-container .select2-choices, | ||
.control-group.error .select2-container-active .select2-choice, | ||
.control-group.error .select2-container-active .select2-choices, | ||
.control-group.error .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.error .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.error .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #B94A48 !important; | ||
} | ||
|
||
.control-group.error .select2-container .select2-choice div { | ||
border-left: 1px solid #B94A48 !important; | ||
background: #F2DEDE !important; | ||
} | ||
|
||
.control-group.info .select2-container .select2-choice, | ||
.control-group.info .select2-container .select2-choices, | ||
.control-group.info .select2-container-active .select2-choice, | ||
.control-group.info .select2-container-active .select2-choices, | ||
.control-group.info .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.info .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.info .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #3A87AD !important; | ||
} | ||
|
||
.control-group.info .select2-container .select2-choice div { | ||
border-left: 1px solid #3A87AD !important; | ||
background: #D9EDF7 !important; | ||
} | ||
|
||
.control-group.success .select2-container .select2-choice, | ||
.control-group.success .select2-container .select2-choices, | ||
.control-group.success .select2-container-active .select2-choice, | ||
.control-group.success .select2-container-active .select2-choices, | ||
.control-group.success .select2-dropdown-open.select2-drop-above .select2-choice, | ||
.control-group.success .select2-dropdown-open.select2-drop-above .select2-choices, | ||
.control-group.success .select2-container-multi.select2-container-active .select2-choices { | ||
border: 1px solid #468847 !important; | ||
} | ||
|
||
.control-group.success .select2-container .select2-choice div { | ||
border-left: 1px solid #468847 !important; | ||
background: #DFF0D8 !important; | ||
} |
Oops, something went wrong.