-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 730a0f2
Showing
52 changed files
with
4,573 additions
and
0 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,16 @@ | ||
*.rbc | ||
*.sassc | ||
.sass-cache | ||
capybara-*.html | ||
.rspec | ||
/.bundle | ||
/vendor/bundle | ||
/log/* | ||
/tmp/* | ||
/db/*.sqlite3 | ||
/public/system/* | ||
/coverage/ | ||
/spec/tmp/* | ||
**.orig | ||
rerun.txt | ||
pickle-email-*.html |
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,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec |
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 @@ | ||
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,3 @@ | ||
Select2 is a jQuery based replacement for select boxes. | ||
It supports searching, remote data sets, and infinite scrolling of results. | ||
http://ivaynberg.github.io/select2/ |
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,36 @@ | ||
#!/usr/bin/env rake | ||
begin | ||
require 'bundler/setup' | ||
rescue LoadError | ||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
end | ||
begin | ||
require 'rdoc/task' | ||
rescue LoadError | ||
require 'rdoc/rdoc' | ||
require 'rake/rdoctask' | ||
RDoc::Task = Rake::RDocTask | ||
end | ||
|
||
RDoc::Task.new(:rdoc) do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = 'BootstrapSearchSelect' | ||
rdoc.options << '--line-numbers' | ||
rdoc.rdoc_files.include('README.rdoc') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
|
||
load 'rails/tasks/engine.rake' | ||
|
||
Bundler::GemHelper.install_tasks | ||
|
||
require 'rake/testtask' | ||
|
||
Rake::TestTask.new(:test) do |t| | ||
t.libs << 'lib' | ||
# t.libs << 'test' | ||
# t.pattern = 'test/**/*_test.rb' | ||
# t.verbose = false | ||
end | ||
|
||
task :default => :spec |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.0", | ||
"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,2 @@ | ||
//= require ./select2 | ||
//= require_tree ./locales/ |
17 changes: 17 additions & 0 deletions
17
app/assets/javascripts/bootstrap-select2/locales/select2_locale_ca.js
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,17 @@ | ||
/** | ||
* Select2 Catalan translation. | ||
* | ||
* Author: David Planella <[email protected]> | ||
*/ | ||
(function ($) { | ||
"use strict"; | ||
|
||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { return "No s'ha trobat cap coincidència"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Introduïu " + n + " caràcter" + (n == 1? "" : "s") + "menys"; }, | ||
formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats..."; }, | ||
formatSearching: function () { return "S'està cercant..."; } | ||
}); | ||
})(jQuery); |
49 changes: 49 additions & 0 deletions
49
app/assets/javascripts/bootstrap-select2/locales/select2_locale_cs.js
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,49 @@ | ||
/** | ||
* Select2 Czech translation. | ||
* | ||
* Author: Michal Marek <[email protected]> | ||
* Author - sklonovani: David Vallner <[email protected]> | ||
*/ | ||
(function ($) { | ||
"use strict"; | ||
// use text for the numbers 2 through 4 | ||
var smallNumbers = { | ||
2: function(masc) { return (masc ? "dva" : "dvě"); }, | ||
3: function() { return "tři"; }, | ||
4: function() { return "čtyři"; } | ||
} | ||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { return "Nenalezeny žádné položky"; }, | ||
formatInputTooShort: function (input, min) { | ||
var n = min - input.length; | ||
if (n == 1) { | ||
return "Prosím zadejte ještě jeden znak"; | ||
} else if (n <= 4) { | ||
return "Prosím zadejte ještě další "+smallNumbers[n](true)+" znaky"; | ||
} else { | ||
return "Prosím zadejte ještě dalších "+n+" znaků"; | ||
} | ||
}, | ||
formatInputTooLong: function (input, max) { | ||
var n = input.length - max; | ||
if (n == 1) { | ||
return "Prosím zadejte o jeden znak méně"; | ||
} else if (n <= 4) { | ||
return "Prosím zadejte o "+smallNumbers[n](true)+" znaky méně"; | ||
} else { | ||
return "Prosím zadejte o "+n+" znaků méně"; | ||
} | ||
}, | ||
formatSelectionTooBig: function (limit) { | ||
if (limit == 1) { | ||
return "Můžete zvolit jen jednu položku"; | ||
} else if (limit <= 4) { | ||
return "Můžete zvolit maximálně "+smallNumbers[limit](false)+" položky"; | ||
} else { | ||
return "Můžete zvolit maximálně "+limit+" položek"; | ||
} | ||
}, | ||
formatLoadMore: function (pageNumber) { return "Načítavají se další výsledky..."; }, | ||
formatSearching: function () { return "Vyhledávání..."; } | ||
}); | ||
})(jQuery); |
17 changes: 17 additions & 0 deletions
17
app/assets/javascripts/bootstrap-select2/locales/select2_locale_da.js
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,17 @@ | ||
/** | ||
* Select2 Danish translation. | ||
* | ||
* Author: Anders Jenbo <[email protected]> | ||
*/ | ||
(function ($) { | ||
"use strict"; | ||
|
||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { return "Ingen resultater fundet"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Angiv venligst " + n + " tegn mere"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Angiv venligst " + n + " tegn mindre"; }, | ||
formatSelectionTooBig: function (limit) { return "Du kan kun vælge " + limit + " emne" + (limit === 1 ? "" : "r"); }, | ||
formatLoadMore: function (pageNumber) { return "Indlæser flere resultater…"; }, | ||
formatSearching: function () { return "Søger…"; } | ||
}); | ||
})(jQuery); |
15 changes: 15 additions & 0 deletions
15
app/assets/javascripts/bootstrap-select2/locales/select2_locale_de.js
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,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 changes: 17 additions & 0 deletions
17
app/assets/javascripts/bootstrap-select2/locales/select2_locale_en.js.template
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,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 changes: 15 additions & 0 deletions
15
app/assets/javascripts/bootstrap-select2/locales/select2_locale_es.js
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,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); |
17 changes: 17 additions & 0 deletions
17
app/assets/javascripts/bootstrap-select2/locales/select2_locale_et.js
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,17 @@ | ||
/** | ||
* Select2 Estonian translation. | ||
* | ||
* Author: Kuldar Kalvik <[email protected]> | ||
*/ | ||
(function ($) { | ||
"use strict"; | ||
|
||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { return "Tulemused puuduvad"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Sisesta " + n + " täht" + (n == 1 ? "" : "e") + " rohkem"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Sisesta " + n + " täht" + (n == 1? "" : "e") + " vähem"; }, | ||
formatSelectionTooBig: function (limit) { return "Saad vaid " + limit + " tulemus" + (limit == 1 ? "e" : "t") + " valida"; }, | ||
formatLoadMore: function (pageNumber) { return "Laen tulemusi.."; }, | ||
formatSearching: function () { return "Otsin.."; } | ||
}); | ||
})(jQuery); |
43 changes: 43 additions & 0 deletions
43
app/assets/javascripts/bootstrap-select2/locales/select2_locale_eu.js
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,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 changes: 15 additions & 0 deletions
15
app/assets/javascripts/bootstrap-select2/locales/select2_locale_fr.js
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,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); |
43 changes: 43 additions & 0 deletions
43
app/assets/javascripts/bootstrap-select2/locales/select2_locale_gl.js
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,43 @@ | ||
/** | ||
* Select2 Galician translation | ||
* | ||
* Author: Leandro Regueiro <[email protected]> | ||
*/ | ||
(function ($) { | ||
"use strict"; | ||
|
||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { | ||
return "Non se atoparon resultados"; | ||
}, | ||
formatInputTooShort: function (input, min) { | ||
var n = min - input.length; | ||
if (n === 1) { | ||
return "Engada un carácter"; | ||
} else { | ||
return "Engada " + n + " caracteres"; | ||
} | ||
}, | ||
formatInputTooLong: function (input, max) { | ||
var n = input.length - max; | ||
if (n === 1) { | ||
return "Elimine un carácter"; | ||
} else { | ||
return "Elimine " + n + " caracteres"; | ||
} | ||
}, | ||
formatSelectionTooBig: function (limit) { | ||
if (limit === 1 ) { | ||
return "Só pode seleccionar un elemento"; | ||
} else { | ||
return "Só pode seleccionar " + limit + " elementos"; | ||
} | ||
}, | ||
formatLoadMore: function (pageNumber) { | ||
return "Cargando máis resultados..."; | ||
}, | ||
formatSearching: function () { | ||
return "Buscando..."; | ||
} | ||
}); | ||
})(jQuery); |
17 changes: 17 additions & 0 deletions
17
app/assets/javascripts/bootstrap-select2/locales/select2_locale_he.js
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,17 @@ | ||
/** | ||
* Select2 Hebrew translation. | ||
* | ||
* Author: Yakir Sitbon <http://www.yakirs.net/> | ||
*/ | ||
(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); |
42 changes: 42 additions & 0 deletions
42
app/assets/javascripts/bootstrap-select2/locales/select2_locale_hr.js
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,42 @@ | ||
/** | ||
* Select2 Croatian translation. | ||
* | ||
* Author: Edi Modrić <[email protected]> | ||
*/ | ||
(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); |
Oops, something went wrong.