├── .gitignore ├── lib ├── select2-rails │ ├── version.rb │ ├── engine.rb │ └── source_file.rb └── select2-rails.rb ├── Gemfile ├── Rakefile ├── vendor └── assets │ ├── javascripts │ ├── select2_locale_zh-TW.js │ ├── select2_locale_zh-CN.js │ ├── select2_locale_ja.js │ ├── select2_locale_az.js │ ├── select2_locale_ko.js │ ├── select2_locale_vi.js │ ├── select2_locale_tk.js │ ├── select2_locale_tr.js │ ├── select2_locale_id.js │ ├── select2_locale_th.js │ ├── select2_locale_ar.js │ ├── select2_locale_nb.js │ ├── select2_locale_km.js │ ├── select2_locale_sv.js │ ├── select2_locale_is.js │ ├── select2_locale_et.js │ ├── select2_locale_fi.js │ ├── select2_locale_ms.js │ ├── select2_locale_hu.js │ ├── select2_locale_ka.js │ ├── select2_locale_bg.js │ ├── select2_locale_da.js │ ├── select2_locale_hy.js │ ├── select2_locale_fa.js │ ├── select2_locale_hi.js │ ├── select2_locale_he.js │ ├── select2_locale_hr.js │ ├── select2_locale_eo.js │ ├── select2_locale_af.js │ ├── select2_locale_de.js │ ├── select2_locale_eu.js │ ├── select2_locale_pt-BR.js │ ├── select2_locale_pt.js │ ├── select2_locale_mk.js │ ├── select2_locale_bn.js │ ├── select2_locale_en.js │ ├── select2_locale_lv.js │ ├── select2_locale_sq.js │ ├── select2_locale_ca.js │ ├── select2_locale_it.js │ ├── select2_locale_ps.js │ ├── select2_locale_nl.js │ ├── select2_locale_ne.js │ ├── select2_locale_fr.js │ ├── select2_locale_sl.js │ ├── select2_locale_es.js │ ├── select2_locale_gl.js │ ├── select2_locale_ro.js │ ├── select2_locale_lt.js │ ├── select2_locale_pl.js │ ├── select2_locale_el.js │ ├── select2_locale_sr.js │ ├── select2_locale_uk.js │ ├── select2_locale_bs.js │ ├── select2_locale_sr-Cyrl.js │ ├── select2_locale_pa.js │ ├── select2_locale_ru.js │ ├── select2_locale_hsb.js │ ├── select2_locale_dsb.js │ ├── select2_locale_cs.js │ └── select2_locale_sk.js │ └── stylesheets │ ├── select2.css │ └── select2-bootstrap.css ├── select2-rails.gemspec └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | .bundle 3 | Gemfile.lock 4 | pkg/* 5 | -------------------------------------------------------------------------------- /lib/select2-rails/version.rb: -------------------------------------------------------------------------------- 1 | module Select2 2 | module Rails 3 | VERSION = '4.1.0-beta.1' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | # Specify your gem's dependencies in select2-rails.gemspec 4 | gemspec 5 | -------------------------------------------------------------------------------- /lib/select2-rails/engine.rb: -------------------------------------------------------------------------------- 1 | module Select2 2 | module Rails 3 | class Engine < ::Rails::Engine 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /lib/select2-rails.rb: -------------------------------------------------------------------------------- 1 | require "select2-rails/version" 2 | 3 | module Select2 4 | module Rails 5 | require "select2-rails/engine" 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env rake 2 | require "bundler/gem_tasks" 3 | require File.expand_path('../lib/select2-rails/source_file', __FILE__) 4 | 5 | desc "Update with Ivaynberg's select2 Library" 6 | task "update-select2" do 7 | files = SourceFile.new 8 | files.fetch 9 | end 10 | -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_zh-TW.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(n){return"請刪掉"+(n.input.length-n.maximum)+"個字元"},inputTooShort:function(n){return"請再輸入"+(n.minimum-n.input.length)+"個字元"},loadingMore:function(){return"載入中…"},maximumSelected:function(n){return"你只能選擇最多"+n.maximum+"項"},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"},removeAllItems:function(){return"刪除所有項目"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_zh-CN.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(n){return"请删除"+(n.input.length-n.maximum)+"个字符"},inputTooShort:function(n){return"请再输入至少"+(n.minimum-n.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(n){return"最多只能选择"+n.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ja.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(n){return n.input.length-n.maximum+" 文字を削除してください"},inputTooShort:function(n){return"少なくとも "+(n.minimum-n.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(n){return n.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_az.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/az",[],function(){return{inputTooLong:function(n){return n.input.length-n.maximum+" simvol silin"},inputTooShort:function(n){return n.minimum-n.input.length+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(n){return"Sadəcə "+n.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"},removeAllItems:function(){return"Bütün elementləri sil"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ko.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(n){return"너무 깁니다. "+(n.input.length-n.maximum)+" 글자 지워주세요."},inputTooShort:function(n){return"너무 짧습니다. "+(n.minimum-n.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(n){return"최대 "+n.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_vi.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/vi",[],function(){return{inputTooLong:function(n){return"Vui lòng xóa bớt "+(n.input.length-n.maximum)+" ký tự"},inputTooShort:function(n){return"Vui lòng nhập thêm từ "+(n.minimum-n.input.length)+" ký tự trở lên"},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(n){return"Chỉ có thể chọn được "+n.maximum+" lựa chọn"},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"},removeAllItems:function(){return"Xóa tất cả các mục"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_tk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de iň az "+(e.minimum-e.input.length)+" harp ýazyň."},loadingMore:function(){return"Köpräk netije görkezilýär…"},maximumSelected:function(e){return"Diňe "+e.maximum+" sanysyny saýlaň."},noResults:function(){return"Netije tapylmady."},searching:function(){return"Gözlenýär…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_tr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(n){return n.input.length-n.maximum+" karakter daha girmelisiniz"},inputTooShort:function(n){return"En az "+(n.minimum-n.input.length)+" karakter daha girmelisiniz"},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(n){return"Sadece "+n.maximum+" seçim yapabilirsiniz"},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"},removeAllItems:function(){return"Tüm öğeleri kaldır"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_id.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(n){return"Hapuskan "+(n.input.length-n.maximum)+" huruf"},inputTooShort:function(n){return"Masukkan "+(n.minimum-n.input.length)+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(n){return"Anda hanya dapat memilih "+n.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Hapus semua item"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_th.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/th",[],function(){return{errorLoading:function(){return"ไม่สามารถค้นข้อมูลได้"},inputTooLong:function(n){return"โปรดลบออก "+(n.input.length-n.maximum)+" ตัวอักษร"},inputTooShort:function(n){return"โปรดพิมพ์เพิ่มอีก "+(n.minimum-n.input.length)+" ตัวอักษร"},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(n){return"คุณสามารถเลือกได้ไม่เกิน "+n.maximum+" รายการ"},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"},removeAllItems:function(){return"ลบรายการทั้งหมด"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ar.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(n){return"الرجاء حذف "+(n.input.length-n.maximum)+" عناصر"},inputTooShort:function(n){return"الرجاء إضافة "+(n.minimum-n.input.length)+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(n){return"تستطيع إختيار "+n.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"},removeAllItems:function(){return"قم بإزالة كل العناصر"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_nb.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){return"Vennligst fjern "+(e.input.length-e.maximum)+" tegn"},inputTooShort:function(e){return"Vennligst skriv inn "+(e.minimum-e.input.length)+" tegn til"},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_km.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(n){return"សូមលុបចេញ "+(n.input.length-n.maximum)+" អក្សរ"},inputTooShort:function(n){return"សូមបញ្ចូល"+(n.minimum-n.input.length)+" អក្សរ រឺ ច្រើនជាងនេះ"},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(n){return"អ្នកអាចជ្រើសរើសបានតែ "+n.maximum+" ជម្រើសប៉ុណ្ណោះ"},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."},removeAllItems:function(){return"លុបធាតុទាំងអស់"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_sv.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(n){return"Vänligen sudda ut "+(n.input.length-n.maximum)+" tecken"},inputTooShort:function(n){return"Vänligen skriv in "+(n.minimum-n.input.length)+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(n){return"Du kan max välja "+n.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"},removeAllItems:function(){return"Ta bort alla objekt"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_is.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/is",[],function(){return{inputTooLong:function(n){var t=n.input.length-n.maximum,e="Vinsamlegast styttið texta um "+t+" staf";return t<=1?e:e+"i"},inputTooShort:function(n){var t=n.minimum-n.input.length,e="Vinsamlegast skrifið "+t+" staf";return t>1&&(e+="i"),e+=" í viðbót"},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(n){return"Þú getur aðeins valið "+n.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"},removeAllItems:function(){return"Fjarlægðu öll atriði"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_et.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var n=e.input.length-e.maximum,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" vähem"},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" rohkem"},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var n="Saad vaid "+e.maximum+" tulemus";return 1==e.maximum?n+="e":n+="t",n+=" valida"},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"},removeAllItems:function(){return"Eemalda kõik esemed"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_fi.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(n){return"Ole hyvä ja anna "+(n.input.length-n.maximum)+" merkkiä vähemmän"},inputTooShort:function(n){return"Ole hyvä ja anna "+(n.minimum-n.input.length)+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(n){return"Voit valita ainoastaan "+n.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"},removeAllItems:function(){return"Poista kaikki kohteet"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ms.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(n){return"Sila hapuskan "+(n.input.length-n.maximum)+" aksara"},inputTooShort:function(n){return"Sila masukkan "+(n.minimum-n.input.length)+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(n){return"Anda hanya boleh memilih "+n.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Keluarkan semua item"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_hu.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){return"Túl hosszú. "+(e.input.length-e.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(e){return"Túl rövid. Még "+(e.minimum-e.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ka.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ka",[],function(){return{errorLoading:function(){return"მონაცემების ჩატვირთვა შეუძლებელია."},inputTooLong:function(n){return"გთხოვთ აკრიფეთ "+(n.input.length-n.maximum)+" სიმბოლოთი ნაკლები"},inputTooShort:function(n){return"გთხოვთ აკრიფეთ "+(n.minimum-n.input.length)+" სიმბოლო ან მეტი"},loadingMore:function(){return"მონაცემების ჩატვირთვა…"},maximumSelected:function(n){return"თქვენ შეგიძლიათ აირჩიოთ არაუმეტეს "+n.maximum+" ელემენტი"},noResults:function(){return"რეზულტატი არ მოიძებნა"},searching:function(){return"ძიება…"},removeAllItems:function(){return"ამოიღე ყველა ელემენტი"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_bg.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bg",[],function(){return{inputTooLong:function(n){var e=n.input.length-n.maximum,u="Моля въведете с "+e+" по-малко символ";return e>1&&(u+="a"),u},inputTooShort:function(n){var e=n.minimum-n.input.length,u="Моля въведете още "+e+" символ";return e>1&&(u+="a"),u},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(n){var e="Можете да направите до "+n.maximum+" ";return n.maximum>1?e+="избора":e+="избор",e},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"},removeAllItems:function(){return"Премахнете всички елементи"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_da.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){return"Angiv venligst "+(e.input.length-e.maximum)+" tegn mindre"},inputTooShort:function(e){return"Angiv venligst "+(e.minimum-e.input.length)+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var n="Du kan kun vælge "+e.maximum+" emne";return 1!=e.maximum&&(n+="r"),n},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_hy.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(n){return"Խնդրում ենք հեռացնել "+(n.input.length-n.maximum)+" նշան"},inputTooShort:function(n){return"Խնդրում ենք մուտքագրել "+(n.minimum-n.input.length)+" կամ ավել նշաններ"},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(n){return"Դուք կարող եք ընտրել առավելագույնը "+n.maximum+" կետ"},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"},removeAllItems:function(){return"Հեռացնել բոլոր տարրերը"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_fa.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(n){return"لطفاً "+(n.input.length-n.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(n){return"لطفاً تعداد "+(n.minimum-n.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(n){return"شما تنها می‌توانید "+n.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجه‌ای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_hi.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(n){var e=n.input.length-n.maximum,r=e+" अक्षर को हटा दें";return e>1&&(r=e+" अक्षरों को हटा दें "),r},inputTooShort:function(n){return"कृपया "+(n.minimum-n.input.length)+" या अधिक अक्षर दर्ज करें"},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(n){return"आप केवल "+n.maximum+" आइटम का चयन कर सकते हैं"},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."},removeAllItems:function(){return"सभी वस्तुओं को हटा दें"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_he.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="נא למחוק ";return r+=1===e?"תו אחד":e+" תווים"},inputTooShort:function(n){var e=n.minimum-n.input.length,r="נא להכניס ";return r+=1===e?"תו אחד":e+" תווים",r+=" או יותר"},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(n){var e="באפשרותך לבחור עד ";return 1===n.maximum?e+="פריט אחד":e+=n.maximum+" פריטים",e},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"},removeAllItems:function(){return"הסר את כל הפריטים"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_hr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hr",[],function(){function n(n){var e=" "+n+" znak";return n%10<5&&n%10>0&&(n%100<5||n%100>19)?n%10>1&&(e+="a"):e+="ova",e}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(e){return"Unesite "+n(e.input.length-e.maximum)},inputTooShort:function(e){return"Unesite još "+n(e.minimum-e.input.length)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(n){return"Maksimalan broj odabranih stavki je "+n.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Ukloni sve stavke"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_eo.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/eo",[],function(){return{errorLoading:function(){return"La rezultoj ne povas esti ŝargitaj."},inputTooLong:function(n){var e=n.input.length-n.maximum,r="Bonvolu forigi "+e+" signo";return r+=1==e?"n":"jn"},inputTooShort:function(n){return"Bv. enigi "+(n.minimum-n.input.length)+" aŭ pli multajn signojn"},loadingMore:function(){return"Ŝargado de pliaj rezultoj…"},maximumSelected:function(n){var e="Vi povas elekti nur "+n.maximum+" ero";return 1==n.maximum?e+="n":e+="jn",e},noResults:function(){return"Neniuj rezultoj trovitaj"},searching:function(){return"Serĉado…"},removeAllItems:function(){return"Forigi ĉiujn erojn"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_af.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/af",[],function(){return{errorLoading:function(){return"Die resultate kon nie gelaai word nie."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Verwyders asseblief "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Voer asseblief "+(e.minimum-e.input.length)+" of meer karakters"},loadingMore:function(){return"Meer resultate word gelaai…"},maximumSelected:function(e){var n="Kies asseblief net "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"Geen resultate gevind"},searching:function(){return"Besig…"},removeAllItems:function(){return"Verwyder alle items"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_de.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var n="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(n+="e"),n+=" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_eu.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gutxiago"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gehiago"},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return 1===e.maximum?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"},removeAllItems:function(){return"Kendu elementu guztiak"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_pt-BR.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Apague "+n+" caracter";return 1!=n&&(r+="es"),r},inputTooShort:function(e){return"Digite "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var n="Você só pode selecionar "+e.maximum+" ite";return 1==e.maximum?n+="m":n+="ns",n},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_pt.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var r=e.input.length-e.maximum,n="Por favor apague "+r+" ";return n+=1!=r?"caracteres":"caractere"},inputTooShort:function(e){return"Introduza "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var r="Apenas pode seleccionar "+e.maximum+" ";return r+=1!=e.maximum?"itens":"item"},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_mk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/mk",[],function(){return{inputTooLong:function(n){var e=(n.input.length,n.maximum,"Ве молиме внесете "+n.maximum+" помалку карактер");return 1!==n.maximum&&(e+="и"),e},inputTooShort:function(n){var e=(n.minimum,n.input.length,"Ве молиме внесете уште "+n.maximum+" карактер");return 1!==n.maximum&&(e+="и"),e},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(n){var e="Можете да изберете само "+n.maximum+" ставк";return 1===n.maximum?e+="а":e+="и",e},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"},removeAllItems:function(){return"Отстрани ги сите предмети"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_bn.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bn",[],function(){return{errorLoading:function(){return"ফলাফলগুলি লোড করা যায়নি।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।";return 1!=e&&(u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।"),u},inputTooShort:function(n){return n.minimum-n.input.length+" টি অক্ষর অথবা অধিক অক্ষর লিখুন।"},loadingMore:function(){return"আরো ফলাফল লোড হচ্ছে ..."},maximumSelected:function(n){var e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।";return 1!=n.maximum&&(e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।"),e},noResults:function(){return"কোন ফলাফল পাওয়া যায়নি।"},searching:function(){return"অনুসন্ধান করা হচ্ছে ..."}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_en.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Please delete "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var n="You can only select "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_lv.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lv",[],function(){function e(e,n,u,i){return 11===e?n:e%10==1?u:i}return{inputTooLong:function(n){var u=n.input.length-n.maximum,i="Lūdzu ievadiet par "+u;return(i+=" simbol"+e(u,"iem","u","iem"))+" mazāk"},inputTooShort:function(n){var u=n.minimum-n.input.length,i="Lūdzu ievadiet vēl "+u;return i+=" simbol"+e(u,"us","u","us")},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(n){var u="Jūs varat izvēlēties ne vairāk kā "+n.maximum;return u+=" element"+e(n.maximum,"us","u","us")},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"},removeAllItems:function(){return"Noņemt visus vienumus"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_sq.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sq",[],function(){return{errorLoading:function(){return"Rezultatet nuk mund të ngarkoheshin."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Të lutem fshi "+n+" karakter";return 1!=n&&(t+="e"),t},inputTooShort:function(e){return"Të lutem shkruaj "+(e.minimum-e.input.length)+" ose më shumë karaktere"},loadingMore:function(){return"Duke ngarkuar më shumë rezultate…"},maximumSelected:function(e){var n="Mund të zgjedhësh vetëm "+e.maximum+" element";return 1!=e.maximum&&(n+="e"),n},noResults:function(){return"Nuk u gjet asnjë rezultat"},searching:function(){return"Duke kërkuar…"},removeAllItems:function(){return"Hiq të gjitha sendet"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ca.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Si us plau, elimina "+n+" car";return r+=1==n?"àcter":"àcters"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Si us plau, introdueix "+n+" car";return r+=1==n?"àcter":"àcters"},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var n="Només es pot seleccionar "+e.maximum+" element";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"},removeAllItems:function(){return"Treu tots els elements"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_it.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Per favore cancella "+n+" caratter";return t+=1!==n?"i":"e"},inputTooShort:function(e){return"Per favore inserisci "+(e.minimum-e.input.length)+" o più caratteri"},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var n="Puoi selezionare solo "+e.maximum+" element";return 1!==e.maximum?n+="i":n+="o",n},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"},removeAllItems:function(){return"Rimuovi tutti gli oggetti"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ps.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ps",[],function(){return{errorLoading:function(){return"پايلي نه سي ترلاسه کېدای"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="د مهربانۍ لمخي "+e+" توری ړنګ کړئ";return 1!=e&&(r=r.replace("توری","توري")),r},inputTooShort:function(n){return"لږ تر لږه "+(n.minimum-n.input.length)+" يا ډېر توري وليکئ"},loadingMore:function(){return"نوري پايلي ترلاسه کيږي..."},maximumSelected:function(n){var e="تاسو يوازي "+n.maximum+" قلم په نښه کولای سی";return 1!=n.maximum&&(e=e.replace("قلم","قلمونه")),e},noResults:function(){return"پايلي و نه موندل سوې"},searching:function(){return"لټول کيږي..."},removeAllItems:function(){return"ټول توکي لرې کړئ"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_nl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var n=1==e.maximum?"kan":"kunnen",r="Er "+n+" maar "+e.maximum+" item";return 1!=e.maximum&&(r+="s"),r+=" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ne.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ne",[],function(){return{errorLoading:function(){return"नतिजाहरु देखाउन सकिएन।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="कृपया "+e+" अक्षर मेटाउनुहोस्।";return 1!=e&&(u+="कृपया "+e+" अक्षरहरु मेटाउनुहोस्।"),u},inputTooShort:function(n){return"कृपया बाँकी रहेका "+(n.minimum-n.input.length)+" वा अरु धेरै अक्षरहरु भर्नुहोस्।"},loadingMore:function(){return"अरु नतिजाहरु भरिँदैछन् …"},maximumSelected:function(n){var e="तँपाई "+n.maximum+" वस्तु मात्र छान्न पाउँनुहुन्छ।";return 1!=n.maximum&&(e="तँपाई "+n.maximum+" वस्तुहरु मात्र छान्न पाउँनुहुन्छ।"),e},noResults:function(){return"कुनै पनि नतिजा भेटिएन।"},searching:function(){return"खोजि हुँदैछ…"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_fr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var n=e.input.length-e.maximum;return"Supprimez "+n+" caractère"+(n>1?"s":"")},inputTooShort:function(e){var n=e.minimum-e.input.length;return"Saisissez au moins "+n+" caractère"+(n>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_sl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Prosim zbrišite "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Prosim vpišite še "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var n="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?n+="a":1!=e.maximum&&(n+="e"),n},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_es.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Por favor, elimine "+n+" car";return r+=1==n?"ácter":"acteres"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Por favor, introduzca "+n+" car";return r+=1==n?"ácter":"acteres"},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var n="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_gl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?"Elimine un carácter":"Elimine "+n+" caracteres"},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?"Engada un carácter":"Engada "+n+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return 1===e.maximum?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Elimina todos os elementos"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ro.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return 1!==t&&(n+="e"),n},inputTooShort:function(e){return"Vă rugăm să introduceți "+(e.minimum-e.input.length)+" sau mai multe caractere"},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",1!==e.maximum&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"},removeAllItems:function(){return"Eliminați toate elementele"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_lt.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/lt",[],function(){function n(n,e,i,t){return n%10==1&&(n%100<11||n%100>19)?e:n%10>=2&&n%10<=9&&(n%100<11||n%100>19)?i:t}return{inputTooLong:function(e){var i=e.input.length-e.maximum,t="Pašalinkite "+i+" simbol";return t+=n(i,"į","ius","ių")},inputTooShort:function(e){var i=e.minimum-e.input.length,t="Įrašykite dar "+i+" simbol";return t+=n(i,"į","ius","ių")},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(e){var i="Jūs galite pasirinkti tik "+e.maximum+" element";return i+=n(e.maximum,"ą","us","ų")},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"},removeAllItems:function(){return"Pašalinti visus elementus"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_pl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pl",[],function(){var n=["znak","znaki","znaków"],e=["element","elementy","elementów"],r=function(n,e){return 1===n?e[0]:n>1&&n<=4?e[1]:n>=5?e[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+r(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Podaj przynajmniej "+t+" "+r(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(n){return"Możesz zaznaczyć tylko "+n.maximum+" "+r(n.maximum,e)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"},removeAllItems:function(){return"Usuń wszystkie przedmioty"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_el.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(n){var e=n.input.length-n.maximum,u="Παρακαλώ διαγράψτε "+e+" χαρακτήρ";return 1==e&&(u+="α"),1!=e&&(u+="ες"),u},inputTooShort:function(n){return"Παρακαλώ συμπληρώστε "+(n.minimum-n.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(n){var e="Μπορείτε να επιλέξετε μόνο "+n.maximum+" επιλογ";return 1==n.maximum&&(e+="ή"),1!=n.maximum&&(e+="ές"),e},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_sr.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr",[],function(){function n(n,e,r,t){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(e){var r=e.input.length-e.maximum,t="Obrišite "+r+" simbol";return t+=n(r,"","a","a")},inputTooShort:function(e){var r=e.minimum-e.input.length,t="Ukucajte bar još "+r+" simbol";return t+=n(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(e){var r="Možete izabrati samo "+e.maximum+" stavk";return r+=n(e.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_uk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/uk",[],function(){function n(n,e,u,r){return n%100>10&&n%100<15?r:n%10==1?e:n%10>1&&n%10<5?u:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(e){return"Будь ласка, видаліть "+(e.input.length-e.maximum)+" "+n(e.maximum,"літеру","літери","літер")},inputTooShort:function(n){return"Будь ласка, введіть "+(n.minimum-n.input.length)+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(e){return"Ви можете вибрати лише "+e.maximum+" "+n(e.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"},removeAllItems:function(){return"Видалити всі елементи"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_bs.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bs",[],function(){function e(e,n,r,t){return e%10==1&&e%100!=11?n:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspijelo."},inputTooLong:function(n){var r=n.input.length-n.maximum,t="Obrišite "+r+" simbol";return t+=e(r,"","a","a")},inputTooShort:function(n){var r=n.minimum-n.input.length,t="Ukucajte bar još "+r+" simbol";return t+=e(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(n){var r="Možete izabrati samo "+n.maximum+" stavk";return r+=e(n.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Uklonite sve stavke"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_sr-Cyrl.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr-Cyrl",[],function(){function n(n,e,r,u){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:u}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Обришите "+r+" симбол";return u+=n(r,"","а","а")},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Укуцајте бар још "+r+" симбол";return u+=n(r,"","а","а")},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(e){var r="Можете изабрати само "+e.maximum+" ставк";return r+=n(e.maximum,"у","е","и")},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_pa.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pa",[],function(){return{errorLoading:function(){return"ਨਤੀਜੇ ਲੋਡ ਨਹੀਂ ਕੀਤੇ ਜਾ ਸਕਦੇ ।"},inputTooLong:function(n){var e=n.input.length-n.maximum;return"ਕ੍ਰਿਪਾ ਕਰਕੇ "+e+(1!=e?" ਅੱਖਰਾਂ ਨੂੰ ":" ਅੱਖਰ ")+"ਮਿਟਾਓ ।"},inputTooShort:function(n){var e=n.minimum-n.input.length;return"ਕ੍ਰਿਪਾ ਕਰਕੇ "+e+" ਜਾਂ "+e+" ਤੋਂ ਵੱਧ"+(e>1?" ਅੱਖਰਾਂ ":" ਅੱਖਰ ")+"ਦੀ ਵਰਤੋਂ ਕਰੋ ।"},loadingMore:function(){return"ਹੋਰ ਨਤੀਜੇ ਲੋਡ ਹੋ ਰਹੇ ਹਨ ...।"},maximumSelected:function(n){var e="ਤੁਸੀਂ ਸਿਰਫ਼ "+n.maximum+" ਨਤੀਜਾ ਚੁਣ ਸਕਦੇ ਹੋ ।";return 1!=n.maximum&&(e="ਤੁਸੀਂ ਸਿਰਫ਼ "+n.maximum+" ਨਤੀਜੇ ਚੁਣ ਸਕਦੇ ਹੋ ।"),e},noResults:function(){return"ਨਤੀਜਾ ਨਹੀਂ ਮਿਲ ਰਿਹਾ ਹੈ ।"},searching:function(){return"ਖ਼ੋਜ ਕਰ ਰਹੇਂ ਹਾਂ ...।"},removeAllItems:function(){return"ਸਾਰੇ ਨਤੀਜੇ ਮਿਟਾਓ ।"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_ru.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Пожалуйста, введите на "+r+" символ";return u+=n(r,"","a","ов"),u+=" меньше"},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Пожалуйста, введите ещё хотя бы "+r+" символ";return u+=n(r,"","a","ов")},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(e){var r="Вы можете выбрать не более "+e.maximum+" элемент";return r+=n(e.maximum,"","a","ов")},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"},removeAllItems:function(){return"Удалить все элементы"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_hsb.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hsb",[],function(){var n=["znamješko","znamješce","znamješka","znamješkow"],e=["zapisk","zapiskaj","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njedachu so začitać."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Prošu zhašej "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Prošu zapodaj znajmjeńša "+a+" "+u(a,n)},loadingMore:function(){return"Dalše wuslědki so začitaja…"},maximumSelected:function(n){return"Móžeš jenož "+n.maximum+" "+u(n.maximum,e)+"wubrać"},noResults:function(){return"Žane wuslědki namakane"},searching:function(){return"Pyta so…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_dsb.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/dsb",[],function(){var n=["znamuško","znamušce","znamuška","znamuškow"],e=["zapisk","zapiska","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njejsu se dali zacytaś."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Pšosym lašuj "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Pšosym zapódaj nanejmjenjej "+a+" "+u(a,n)},loadingMore:function(){return"Dalšne wuslědki se zacytaju…"},maximumSelected:function(n){return"Móžoš jano "+n.maximum+" "+u(n.maximum,e)+"wubraś."},noResults:function(){return"Žedne wuslědki namakane"},searching:function(){return"Pyta se…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}(); -------------------------------------------------------------------------------- /select2-rails.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | require File.expand_path("../lib/select2-rails/version", __FILE__) 3 | 4 | Gem::Specification.new do |s| 5 | s.name = "select2-rails" 6 | s.version = Select2::Rails::VERSION 7 | s.authors = ["Rogerio Medeiros", "Pedro Nascimento"] 8 | s.email = ["argerim@gmail.com", "pnascimento@gmail.com"] 9 | s.homepage = "https://github.com/argerim/select2-rails" 10 | s.summary = %q{Integrate Select2 javascript library with Rails asset pipeline} 11 | s.description = %q{Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. This gem integrates Select2 with Rails asset pipeline for easy of use.} 12 | s.license = 'MIT' 13 | s.files = `git ls-files`.split("\n") 14 | s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") 15 | s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } 16 | s.require_paths = ["lib"] 17 | 18 | s.add_development_dependency "thor", "~> 1" 19 | s.add_development_dependency "bundler", "~> 1.0" 20 | s.add_development_dependency "rails", ">= 3.0" 21 | s.add_development_dependency "httpclient", "~> 2.2" 22 | end 23 | -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_cs.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/cs",[],function(){function e(e,n){switch(e){case 2:return n?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadejte o jeden znak méně.":t<=4?"Prosím, zadejte o "+e(t,!0)+" znaky méně.":"Prosím, zadejte o "+t+" znaků méně."},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadejte ještě jeden znak.":t<=4?"Prosím, zadejte ještě další "+e(t,!0)+" znaky.":"Prosím, zadejte ještě dalších "+t+" znaků."},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(n){var t=n.maximum;return 1==t?"Můžete zvolit jen jednu položku.":t<=4?"Můžete zvolit maximálně "+e(t,!1)+" položky.":"Můžete zvolit maximálně "+t+" položek."},noResults:function(){return"Nenalezeny žádné položky."},searching:function(){return"Vyhledávání…"},removeAllItems:function(){return"Odstraňte všechny položky"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /vendor/assets/javascripts/select2_locale_sk.js: -------------------------------------------------------------------------------- 1 | /*! Select2 4.1.0-beta.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ 2 | 3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{errorLoading:function(){return"Výsledky sa nepodarilo načítať."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadajte o jeden znak menej":t>=2&&t<=4?"Prosím, zadajte o "+e[t](!0)+" znaky menej":"Prosím, zadajte o "+t+" znakov menej"},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadajte ešte jeden znak":t<=4?"Prosím, zadajte ešte ďalšie "+e[t](!0)+" znaky":"Prosím, zadajte ešte ďalších "+t+" znakov"},loadingMore:function(){return"Načítanie ďalších výsledkov…"},maximumSelected:function(n){return 1==n.maximum?"Môžete zvoliť len jednu položku":n.maximum>=2&&n.maximum<=4?"Môžete zvoliť najviac "+e[n.maximum](!1)+" položky":"Môžete zvoliť najviac "+n.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"},removeAllItems:function(){return"Odstráňte všetky položky"}}}),e.define,e.require}(); -------------------------------------------------------------------------------- /lib/select2-rails/source_file.rb: -------------------------------------------------------------------------------- 1 | require "thor" 2 | require "json" 3 | require "httpclient" 4 | 5 | class SourceFile < Thor 6 | include Thor::Actions 7 | 8 | desc "fetch source files", "fetch source files from GitHub" 9 | def fetch 10 | filtered_tags = fetch_tags 11 | tag = select("Which tag do you want to fetch?", filtered_tags) 12 | self.destination_root = "vendor/assets" 13 | remote = "https://github.com/select2/select2" 14 | get "#{remote}/raw/#{tag}/dist/css/select2.css", "stylesheets/select2.css" 15 | get "#{remote}/raw/#{tag}/dist/js/select2.full.js", "javascripts/select2-full.js" 16 | get "#{remote}/raw/#{tag}/dist/js/select2.js", "javascripts/select2.js" 17 | languages(tag).each do |lang| 18 | get "#{remote}/raw/#{tag}/dist/js/i18n/#{lang}.js", "javascripts/select2_locale_#{lang}.js" 19 | end 20 | end 21 | 22 | private 23 | 24 | def fetch_tags 25 | response = JSON.parse(http_client.get("https://api.github.com/repos/select2/select2/tags").body) 26 | response.map{|tag| tag["name"]}.sort 27 | end 28 | 29 | def http_client 30 | @http_client ||= HTTPClient.new 31 | end 32 | 33 | def languages(tag) 34 | response = JSON.parse(http_client.get("https://api.github.com/repos/select2/select2/contents/src/js/select2/i18n?ref=#{tag}").body) 35 | response.map {|file| file["name"].gsub('.js', '')}.sort 36 | end 37 | 38 | def select msg, elements 39 | elements.each_with_index do |element, index| 40 | say(block_given? ? yield(element, index + 1) : ("#{index + 1}. #{element.to_s}")) 41 | end 42 | result = ask(msg).to_i 43 | elements[result - 1] 44 | end 45 | 46 | end 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Select2 for rails asset pipeline 2 | 3 | [Select2](https://github.com/select2/select2) is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. 4 | 5 | The `select2-rails` gem integrates the `Select2` jQuery plugin with the Rails asset pipeline. 6 | 7 | [![Gem Version](https://badge.fury.io/rb/select2-rails.png)](http://badge.fury.io/rb/select2-rails) 8 | 9 | ## Usage 10 | 11 | ### Install select2-rails gem 12 | 13 | Add `select2-rails` to your Gemfile and run `bundle install`: 14 | 15 | gem "select2-rails" 16 | 17 | ### Include select2-rails javascript assets 18 | 19 | Add the following to your `app/assets/javascripts/application.js`: 20 | 21 | //= require select2 22 | 23 | To add `select2-full.js` instead of `select2.js`, add the following instead : 24 | 25 | //= require select2-full 26 | 27 | ### Include select2-rails stylesheet assets 28 | 29 | Add to your `app/assets/stylesheets/application.css`: 30 | 31 | *= require select2 32 | 33 | If you are using Twitter Boostrap you need to also require the bootstrap theme CSS in addition to the above require. 34 | 35 | *= require select2-bootstrap 36 | 37 | To apply the theme, tell Select2 to do so by passing `bootstrap` to the [`theme`](https://select2.github.io/examples.html#themes) option when initializing Select2: 38 | 39 | $( "#dropdown" ).select2({ 40 | theme: "bootstrap" 41 | }); 42 | 43 | ## Internationalization (i18n) 44 | 45 | The `select2-rails` now supports multiple languages. 46 | 47 | Add the following to your `app/assets/javascripts/application.js`: 48 | 49 | //= require select2_locale_"any possible language" 50 | 51 | To apply the language, pass whatever language you'd like to use to the [`language`](https://select2.github.io/examples.html#language) option when initializing Select2: 52 | 53 | $( "#dropdown" ).select2({ 54 | language: "zh-TW" 55 | }); 56 | 57 | Possible languages: 58 | 59 | af, ar, az, bg, bn, bs, ca, cs, da, de, dsb, el, en, eo, es, et, eu, fa, fi, fr, gl, he, hi, hr, hsb, hu, hy, id, is, it, ja, ka, km, ko, lt, lv, mk, ms, nb, ne, nl, pa, pl, ps, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-Cyrl, sv, th, tk, tr, uk, vi, zh-CN, zh-TW 60 | 61 | ## Example 62 | Code [here](https://github.com/argerim/select_2_example) 63 | 64 | Heroku app [here](http://select-2-example.herokuapp.com/) 65 | 66 | ## Fix 67 | ### IE8 Invalid Character 68 | IE8 doesn't support some unescaped Unicode character and need to quote keys in object literals 69 | You need some configurations for [Uglifier](https://github.com/lautis/uglifier) to do the work. 70 | Add to your `config/environments/production.rb` 71 | 72 | require 'uglifier' 73 | config.assets.js_compressor = Uglifier.new(output: {ascii_only: true, quote_keys: true}) 74 | 75 | ## Version 76 | From `v2.1.0` on, `select2-rails`'s version will match the version of `Select2` it uses. 77 | 78 | The last number of the version is the patch version specific to the gem. For example, for a version of the form `2.x.y`, `2.x` is the release of `Select2` we should be compatible with, and y is the patch version specific to the gem (ie. to resolve any gem-specific issues that crop up). 79 | 80 | ## Contributions 81 | 82 | If you want to contribute, please: 83 | 84 | * Fork the project. 85 | * Make your feature addition or bug fix. 86 | * Send me a pull request on Github. 87 | 88 | ## License 89 | 90 | Selec2-Rails is released under the [MIT License](http://www.opensource.org/licenses/MIT). 91 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/select2.css: -------------------------------------------------------------------------------- 1 | .select2-container { 2 | box-sizing: border-box; 3 | display: inline-block; 4 | margin: 0; 5 | position: relative; 6 | vertical-align: middle; } 7 | .select2-container .select2-selection--single { 8 | box-sizing: border-box; 9 | cursor: pointer; 10 | display: block; 11 | height: 28px; 12 | user-select: none; 13 | -webkit-user-select: none; } 14 | .select2-container .select2-selection--single .select2-selection__rendered { 15 | display: block; 16 | padding-left: 8px; 17 | padding-right: 20px; 18 | overflow: hidden; 19 | text-overflow: ellipsis; 20 | white-space: nowrap; } 21 | .select2-container .select2-selection--single .select2-selection__clear { 22 | background-color: transparent; 23 | border: none; 24 | font-size: 1em; } 25 | .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered { 26 | padding-right: 8px; 27 | padding-left: 20px; } 28 | .select2-container .select2-selection--multiple { 29 | box-sizing: border-box; 30 | cursor: pointer; 31 | display: block; 32 | min-height: 32px; 33 | user-select: none; 34 | -webkit-user-select: none; } 35 | .select2-container .select2-selection--multiple .select2-selection__rendered { 36 | display: inline; 37 | list-style: none; 38 | padding: 0; } 39 | .select2-container .select2-selection--multiple .select2-selection__clear { 40 | background-color: transparent; 41 | border: none; 42 | font-size: 1em; } 43 | .select2-container .select2-search--inline .select2-search__field { 44 | box-sizing: border-box; 45 | border: none; 46 | font-size: 100%; 47 | margin-top: 5px; 48 | margin-left: 5px; 49 | padding: 0; } 50 | .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button { 51 | -webkit-appearance: none; } 52 | 53 | .select2-dropdown { 54 | background-color: white; 55 | border: 1px solid #aaa; 56 | border-radius: 4px; 57 | box-sizing: border-box; 58 | display: block; 59 | position: absolute; 60 | left: -100000px; 61 | width: 100%; 62 | z-index: 1051; } 63 | 64 | .select2-results { 65 | display: block; } 66 | 67 | .select2-results__options { 68 | list-style: none; 69 | margin: 0; 70 | padding: 0; } 71 | 72 | .select2-results__option { 73 | padding: 6px; 74 | user-select: none; 75 | -webkit-user-select: none; } 76 | 77 | .select2-results__option--selectable { 78 | cursor: pointer; } 79 | 80 | .select2-container--open .select2-dropdown { 81 | left: 0; } 82 | 83 | .select2-container--open .select2-dropdown--above { 84 | border-bottom: none; 85 | border-bottom-left-radius: 0; 86 | border-bottom-right-radius: 0; } 87 | 88 | .select2-container--open .select2-dropdown--below { 89 | border-top: none; 90 | border-top-left-radius: 0; 91 | border-top-right-radius: 0; } 92 | 93 | .select2-search--dropdown { 94 | display: block; 95 | padding: 4px; } 96 | .select2-search--dropdown .select2-search__field { 97 | padding: 4px; 98 | width: 100%; 99 | box-sizing: border-box; } 100 | .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button { 101 | -webkit-appearance: none; } 102 | .select2-search--dropdown.select2-search--hide { 103 | display: none; } 104 | 105 | .select2-close-mask { 106 | border: 0; 107 | margin: 0; 108 | padding: 0; 109 | display: block; 110 | position: fixed; 111 | left: 0; 112 | top: 0; 113 | min-height: 100%; 114 | min-width: 100%; 115 | height: auto; 116 | width: auto; 117 | opacity: 0; 118 | z-index: 99; 119 | background-color: #fff; 120 | filter: alpha(opacity=0); } 121 | 122 | .select2-hidden-accessible { 123 | border: 0 !important; 124 | clip: rect(0 0 0 0) !important; 125 | -webkit-clip-path: inset(50%) !important; 126 | clip-path: inset(50%) !important; 127 | height: 1px !important; 128 | overflow: hidden !important; 129 | padding: 0 !important; 130 | position: absolute !important; 131 | width: 1px !important; 132 | white-space: nowrap !important; } 133 | 134 | .select2-container--default .select2-selection--single { 135 | background-color: #fff; 136 | border: 1px solid #aaa; 137 | border-radius: 4px; } 138 | .select2-container--default .select2-selection--single .select2-selection__rendered { 139 | color: #444; 140 | line-height: 28px; } 141 | .select2-container--default .select2-selection--single .select2-selection__clear { 142 | cursor: pointer; 143 | float: right; 144 | font-weight: bold; 145 | height: 26px; 146 | margin-right: 20px; 147 | padding-right: 0px; } 148 | .select2-container--default .select2-selection--single .select2-selection__placeholder { 149 | color: #999; } 150 | .select2-container--default .select2-selection--single .select2-selection__arrow { 151 | height: 26px; 152 | position: absolute; 153 | top: 1px; 154 | right: 1px; 155 | width: 20px; } 156 | .select2-container--default .select2-selection--single .select2-selection__arrow b { 157 | border-color: #888 transparent transparent transparent; 158 | border-style: solid; 159 | border-width: 5px 4px 0 4px; 160 | height: 0; 161 | left: 50%; 162 | margin-left: -4px; 163 | margin-top: -2px; 164 | position: absolute; 165 | top: 50%; 166 | width: 0; } 167 | 168 | .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear { 169 | float: left; } 170 | 171 | .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow { 172 | left: 1px; 173 | right: auto; } 174 | 175 | .select2-container--default.select2-container--disabled .select2-selection--single { 176 | background-color: #eee; 177 | cursor: default; } 178 | .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear { 179 | display: none; } 180 | 181 | .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { 182 | border-color: transparent transparent #888 transparent; 183 | border-width: 0 4px 5px 4px; } 184 | 185 | .select2-container--default .select2-selection--multiple { 186 | background-color: white; 187 | border: 1px solid #aaa; 188 | border-radius: 4px; 189 | cursor: text; 190 | padding-bottom: 5px; 191 | padding-right: 5px; } 192 | .select2-container--default .select2-selection--multiple .select2-selection__clear { 193 | cursor: pointer; 194 | float: right; 195 | font-weight: bold; 196 | height: 20px; 197 | margin-right: 10px; 198 | margin-top: 5px; 199 | padding: 1px; } 200 | .select2-container--default .select2-selection--multiple .select2-selection__choice { 201 | background-color: #e4e4e4; 202 | border: 1px solid #aaa; 203 | border-radius: 4px; 204 | display: inline-block; 205 | margin-left: 5px; 206 | margin-top: 5px; 207 | padding: 0; } 208 | .select2-container--default .select2-selection--multiple .select2-selection__choice__display { 209 | cursor: default; 210 | padding-left: 2px; 211 | padding-right: 5px; } 212 | .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { 213 | background-color: transparent; 214 | border: none; 215 | border-right: 1px solid #aaa; 216 | border-top-left-radius: 4px; 217 | border-bottom-left-radius: 4px; 218 | color: #999; 219 | cursor: pointer; 220 | font-size: 1em; 221 | font-weight: bold; 222 | padding: 0 4px; } 223 | .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus { 224 | background-color: #f1f1f1; 225 | color: #333; 226 | outline: none; } 227 | 228 | .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice { 229 | margin-left: 5px; 230 | margin-right: auto; } 231 | 232 | .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display { 233 | padding-left: 5px; 234 | padding-right: 2px; } 235 | 236 | .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove { 237 | border-left: 1px solid #aaa; 238 | border-right: none; 239 | border-top-left-radius: 0; 240 | border-bottom-left-radius: 0; 241 | border-top-right-radius: 4px; 242 | border-bottom-right-radius: 4px; } 243 | 244 | .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear { 245 | float: left; 246 | margin-left: 10px; 247 | margin-right: auto; } 248 | 249 | .select2-container--default.select2-container--focus .select2-selection--multiple { 250 | border: solid black 1px; 251 | outline: 0; } 252 | 253 | .select2-container--default.select2-container--disabled .select2-selection--multiple { 254 | background-color: #eee; 255 | cursor: default; } 256 | 257 | .select2-container--default.select2-container--disabled .select2-selection__choice__remove { 258 | display: none; } 259 | 260 | .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple { 261 | border-top-left-radius: 0; 262 | border-top-right-radius: 0; } 263 | 264 | .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple { 265 | border-bottom-left-radius: 0; 266 | border-bottom-right-radius: 0; } 267 | 268 | .select2-container--default .select2-search--dropdown .select2-search__field { 269 | border: 1px solid #aaa; } 270 | 271 | .select2-container--default .select2-search--inline .select2-search__field { 272 | background: transparent; 273 | border: none; 274 | outline: 0; 275 | box-shadow: none; 276 | -webkit-appearance: textfield; } 277 | 278 | .select2-container--default .select2-results > .select2-results__options { 279 | max-height: 200px; 280 | overflow-y: auto; } 281 | 282 | .select2-container--default .select2-results__option .select2-results__option { 283 | padding-left: 1em; } 284 | .select2-container--default .select2-results__option .select2-results__option .select2-results__group { 285 | padding-left: 0; } 286 | .select2-container--default .select2-results__option .select2-results__option .select2-results__option { 287 | margin-left: -1em; 288 | padding-left: 2em; } 289 | .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 290 | margin-left: -2em; 291 | padding-left: 3em; } 292 | .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 293 | margin-left: -3em; 294 | padding-left: 4em; } 295 | .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 296 | margin-left: -4em; 297 | padding-left: 5em; } 298 | .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 299 | margin-left: -5em; 300 | padding-left: 6em; } 301 | 302 | .select2-container--default .select2-results__option--group { 303 | padding: 0; } 304 | 305 | .select2-container--default .select2-results__option--disabled { 306 | color: #999; } 307 | 308 | .select2-container--default .select2-results__option--selected { 309 | background-color: #ddd; } 310 | 311 | .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { 312 | background-color: #5897fb; 313 | color: white; } 314 | 315 | .select2-container--default .select2-results__group { 316 | cursor: default; 317 | display: block; 318 | padding: 6px; } 319 | 320 | .select2-container--classic .select2-selection--single { 321 | background-color: #f7f7f7; 322 | border: 1px solid #aaa; 323 | border-radius: 4px; 324 | outline: 0; 325 | background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%); 326 | background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%); 327 | background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%); 328 | background-repeat: repeat-x; 329 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); } 330 | .select2-container--classic .select2-selection--single:focus { 331 | border: 1px solid #5897fb; } 332 | .select2-container--classic .select2-selection--single .select2-selection__rendered { 333 | color: #444; 334 | line-height: 28px; } 335 | .select2-container--classic .select2-selection--single .select2-selection__clear { 336 | cursor: pointer; 337 | float: right; 338 | font-weight: bold; 339 | height: 26px; 340 | margin-right: 20px; } 341 | .select2-container--classic .select2-selection--single .select2-selection__placeholder { 342 | color: #999; } 343 | .select2-container--classic .select2-selection--single .select2-selection__arrow { 344 | background-color: #ddd; 345 | border: none; 346 | border-left: 1px solid #aaa; 347 | border-top-right-radius: 4px; 348 | border-bottom-right-radius: 4px; 349 | height: 26px; 350 | position: absolute; 351 | top: 1px; 352 | right: 1px; 353 | width: 20px; 354 | background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%); 355 | background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%); 356 | background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%); 357 | background-repeat: repeat-x; 358 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); } 359 | .select2-container--classic .select2-selection--single .select2-selection__arrow b { 360 | border-color: #888 transparent transparent transparent; 361 | border-style: solid; 362 | border-width: 5px 4px 0 4px; 363 | height: 0; 364 | left: 50%; 365 | margin-left: -4px; 366 | margin-top: -2px; 367 | position: absolute; 368 | top: 50%; 369 | width: 0; } 370 | 371 | .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear { 372 | float: left; } 373 | 374 | .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow { 375 | border: none; 376 | border-right: 1px solid #aaa; 377 | border-radius: 0; 378 | border-top-left-radius: 4px; 379 | border-bottom-left-radius: 4px; 380 | left: 1px; 381 | right: auto; } 382 | 383 | .select2-container--classic.select2-container--open .select2-selection--single { 384 | border: 1px solid #5897fb; } 385 | .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow { 386 | background: transparent; 387 | border: none; } 388 | .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b { 389 | border-color: transparent transparent #888 transparent; 390 | border-width: 0 4px 5px 4px; } 391 | 392 | .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single { 393 | border-top: none; 394 | border-top-left-radius: 0; 395 | border-top-right-radius: 0; 396 | background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%); 397 | background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%); 398 | background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%); 399 | background-repeat: repeat-x; 400 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); } 401 | 402 | .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single { 403 | border-bottom: none; 404 | border-bottom-left-radius: 0; 405 | border-bottom-right-radius: 0; 406 | background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%); 407 | background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%); 408 | background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%); 409 | background-repeat: repeat-x; 410 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); } 411 | 412 | .select2-container--classic .select2-selection--multiple { 413 | background-color: white; 414 | border: 1px solid #aaa; 415 | border-radius: 4px; 416 | cursor: text; 417 | outline: 0; 418 | padding-bottom: 5px; 419 | padding-right: 5px; } 420 | .select2-container--classic .select2-selection--multiple:focus { 421 | border: 1px solid #5897fb; } 422 | .select2-container--classic .select2-selection--multiple .select2-selection__clear { 423 | display: none; } 424 | .select2-container--classic .select2-selection--multiple .select2-selection__choice { 425 | background-color: #e4e4e4; 426 | border: 1px solid #aaa; 427 | border-radius: 4px; 428 | display: inline-block; 429 | margin-left: 5px; 430 | margin-top: 5px; 431 | padding: 0; } 432 | .select2-container--classic .select2-selection--multiple .select2-selection__choice__display { 433 | cursor: default; 434 | padding-left: 2px; 435 | padding-right: 5px; } 436 | .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove { 437 | background-color: transparent; 438 | border: none; 439 | border-top-left-radius: 4px; 440 | border-bottom-left-radius: 4px; 441 | color: #888; 442 | cursor: pointer; 443 | font-size: 1em; 444 | font-weight: bold; 445 | padding: 0 4px; } 446 | .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover { 447 | color: #555; 448 | outline: none; } 449 | 450 | .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice { 451 | margin-left: 5px; 452 | margin-right: auto; } 453 | 454 | .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display { 455 | padding-left: 5px; 456 | padding-right: 2px; } 457 | 458 | .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove { 459 | border-top-left-radius: 0; 460 | border-bottom-left-radius: 0; 461 | border-top-right-radius: 4px; 462 | border-bottom-right-radius: 4px; } 463 | 464 | .select2-container--classic.select2-container--open .select2-selection--multiple { 465 | border: 1px solid #5897fb; } 466 | 467 | .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple { 468 | border-top: none; 469 | border-top-left-radius: 0; 470 | border-top-right-radius: 0; } 471 | 472 | .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple { 473 | border-bottom: none; 474 | border-bottom-left-radius: 0; 475 | border-bottom-right-radius: 0; } 476 | 477 | .select2-container--classic .select2-search--dropdown .select2-search__field { 478 | border: 1px solid #aaa; 479 | outline: 0; } 480 | 481 | .select2-container--classic .select2-search--inline .select2-search__field { 482 | outline: 0; 483 | box-shadow: none; } 484 | 485 | .select2-container--classic .select2-dropdown { 486 | background-color: white; 487 | border: 1px solid transparent; } 488 | 489 | .select2-container--classic .select2-dropdown--above { 490 | border-bottom: none; } 491 | 492 | .select2-container--classic .select2-dropdown--below { 493 | border-top: none; } 494 | 495 | .select2-container--classic .select2-results > .select2-results__options { 496 | max-height: 200px; 497 | overflow-y: auto; } 498 | 499 | .select2-container--classic .select2-results__option--group { 500 | padding: 0; } 501 | 502 | .select2-container--classic .select2-results__option--disabled { 503 | color: grey; } 504 | 505 | .select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable { 506 | background-color: #3875d7; 507 | color: white; } 508 | 509 | .select2-container--classic .select2-results__group { 510 | cursor: default; 511 | display: block; 512 | padding: 6px; } 513 | 514 | .select2-container--classic.select2-container--open .select2-dropdown { 515 | border-color: #5897fb; } 516 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/select2-bootstrap.css: -------------------------------------------------------------------------------- 1 | /*! Select2 Bootstrap Theme v0.1.0-beta.7 | MIT License | github.com/select2/select2-bootstrap-theme */ 2 | .select2-container--bootstrap { 3 | display: block; 4 | /*------------------------------------*\ 5 | #COMMON STYLES 6 | \*------------------------------------*/ 7 | /** 8 | * Search field in the Select2 dropdown. 9 | */ 10 | /** 11 | * No outline for all search fields - in the dropdown 12 | * and inline in multi Select2s. 13 | */ 14 | /** 15 | * Adjust Select2's choices hover and selected styles to match 16 | * Bootstrap 3's default dropdown styles. 17 | * 18 | * @see http://getbootstrap.com/components/#dropdowns 19 | */ 20 | /** 21 | * Clear the selection. 22 | */ 23 | /** 24 | * Address disabled Select2 styles. 25 | * 26 | * @see https://select2.github.io/examples.html#disabled 27 | * @see http://getbootstrap.com/css/#forms-control-disabled 28 | */ 29 | /*------------------------------------*\ 30 | #DROPDOWN 31 | \*------------------------------------*/ 32 | /** 33 | * Dropdown border color and box-shadow. 34 | */ 35 | /** 36 | * Limit the dropdown height. 37 | */ 38 | /*------------------------------------*\ 39 | #SINGLE SELECT2 40 | \*------------------------------------*/ 41 | /*------------------------------------*\ 42 | #MULTIPLE SELECT2 43 | \*------------------------------------*/ 44 | /** 45 | * Address Bootstrap control sizing classes 46 | * 47 | * 1. Reset Bootstrap defaults. 48 | * 2. Adjust the dropdown arrow button icon position. 49 | * 50 | * @see http://getbootstrap.com/css/#forms-control-sizes 51 | */ 52 | /* 1 */ 53 | /*------------------------------------*\ 54 | #RTL SUPPORT 55 | \*------------------------------------*/ 56 | } 57 | .select2-container--bootstrap .select2-selection { 58 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); 59 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); 60 | background-color: #fff; 61 | border: 1px solid #ccc; 62 | border-radius: 4px; 63 | color: #555555; 64 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 65 | font-size: 14px; 66 | outline: 0; 67 | } 68 | .select2-container--bootstrap .select2-selection.form-control { 69 | border-radius: 4px; 70 | } 71 | .select2-container--bootstrap .select2-search--dropdown .select2-search__field { 72 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); 73 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); 74 | background-color: #fff; 75 | border: 1px solid #ccc; 76 | border-radius: 4px; 77 | color: #555555; 78 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 79 | font-size: 14px; 80 | } 81 | .select2-container--bootstrap .select2-search__field { 82 | outline: 0; 83 | /* Firefox 18- */ 84 | /** 85 | * Firefox 19+ 86 | * 87 | * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox 88 | */ 89 | } 90 | .select2-container--bootstrap .select2-search__field::-webkit-input-placeholder { 91 | color: #999; 92 | } 93 | .select2-container--bootstrap .select2-search__field:-moz-placeholder { 94 | color: #999; 95 | } 96 | .select2-container--bootstrap .select2-search__field::-moz-placeholder { 97 | color: #999; 98 | opacity: 1; 99 | } 100 | .select2-container--bootstrap .select2-search__field:-ms-input-placeholder { 101 | color: #999; 102 | } 103 | .select2-container--bootstrap .select2-results__option { 104 | /** 105 | * Disabled results. 106 | * 107 | * @see https://select2.github.io/examples.html#disabled-results 108 | */ 109 | /** 110 | * Hover state. 111 | */ 112 | /** 113 | * Selected state. 114 | */ 115 | } 116 | .select2-container--bootstrap .select2-results__option[role=group] { 117 | padding: 0; 118 | } 119 | .select2-container--bootstrap .select2-results__option[aria-disabled=true] { 120 | color: #777777; 121 | cursor: not-allowed; 122 | } 123 | .select2-container--bootstrap .select2-results__option[aria-selected=true] { 124 | background-color: #f5f5f5; 125 | color: #262626; 126 | } 127 | .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] { 128 | background-color: #337ab7; 129 | color: #fff; 130 | } 131 | .select2-container--bootstrap .select2-results__option .select2-results__option { 132 | padding: 6px 12px; 133 | } 134 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__group { 135 | padding-left: 0; 136 | } 137 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option { 138 | margin-left: -12px; 139 | padding-left: 24px; 140 | } 141 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 142 | margin-left: -24px; 143 | padding-left: 36px; 144 | } 145 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 146 | margin-left: -36px; 147 | padding-left: 48px; 148 | } 149 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 150 | margin-left: -48px; 151 | padding-left: 60px; 152 | } 153 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { 154 | margin-left: -60px; 155 | padding-left: 72px; 156 | } 157 | .select2-container--bootstrap .select2-results__group { 158 | color: #777777; 159 | display: block; 160 | padding: 6px 12px; 161 | font-size: 12px; 162 | line-height: 1.428571429; 163 | white-space: nowrap; 164 | } 165 | .select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection { 166 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); 167 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); 168 | -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; 169 | -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; 170 | -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s; 171 | transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s; 172 | transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; 173 | transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s; 174 | border-color: #66afe9; 175 | } 176 | .select2-container--bootstrap.select2-container--open { 177 | /** 178 | * Make the dropdown arrow point up while the dropdown is visible. 179 | */ 180 | /** 181 | * Handle border radii of the container when the dropdown is showing. 182 | */ 183 | } 184 | .select2-container--bootstrap.select2-container--open .select2-selection .select2-selection__arrow b { 185 | border-color: transparent transparent #999 transparent; 186 | border-width: 0 4px 4px 4px; 187 | } 188 | .select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection { 189 | border-bottom-right-radius: 0; 190 | border-bottom-left-radius: 0; 191 | border-bottom-color: transparent; 192 | } 193 | .select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection { 194 | border-top-right-radius: 0; 195 | border-top-left-radius: 0; 196 | border-top-color: transparent; 197 | } 198 | .select2-container--bootstrap .select2-selection__clear { 199 | color: #999; 200 | cursor: pointer; 201 | float: right; 202 | font-weight: bold; 203 | margin-right: 10px; 204 | } 205 | .select2-container--bootstrap .select2-selection__clear:hover { 206 | color: #333; 207 | } 208 | .select2-container--bootstrap.select2-container--disabled .select2-selection { 209 | border-color: #ccc; 210 | -webkit-box-shadow: none; 211 | box-shadow: none; 212 | } 213 | .select2-container--bootstrap.select2-container--disabled .select2-selection, 214 | .select2-container--bootstrap.select2-container--disabled .select2-search__field { 215 | cursor: not-allowed; 216 | } 217 | .select2-container--bootstrap.select2-container--disabled .select2-selection, 218 | .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice { 219 | background-color: #eeeeee; 220 | } 221 | .select2-container--bootstrap.select2-container--disabled .select2-selection__clear, 222 | .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove { 223 | display: none; 224 | } 225 | .select2-container--bootstrap .select2-dropdown { 226 | -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); 227 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); 228 | border-color: #66afe9; 229 | overflow-x: hidden; 230 | margin-top: -1px; 231 | } 232 | .select2-container--bootstrap .select2-dropdown--above { 233 | margin-top: 1px; 234 | } 235 | .select2-container--bootstrap .select2-results > .select2-results__options { 236 | max-height: 200px; 237 | overflow-y: auto; 238 | } 239 | .select2-container--bootstrap .select2-selection--single { 240 | height: 34px; 241 | line-height: 1.428571429; 242 | padding: 6px 24px 6px 12px; 243 | /** 244 | * Adjust the single Select2's dropdown arrow button appearance. 245 | */ 246 | } 247 | .select2-container--bootstrap .select2-selection--single .select2-selection__arrow { 248 | position: absolute; 249 | bottom: 0; 250 | right: 12px; 251 | top: 0; 252 | width: 4px; 253 | } 254 | .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b { 255 | border-color: #999 transparent transparent transparent; 256 | border-style: solid; 257 | border-width: 4px 4px 0 4px; 258 | height: 0; 259 | left: 0; 260 | margin-left: -4px; 261 | margin-top: -2px; 262 | position: absolute; 263 | top: 50%; 264 | width: 0; 265 | } 266 | .select2-container--bootstrap .select2-selection--single .select2-selection__rendered { 267 | color: #555555; 268 | padding: 0; 269 | } 270 | .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder { 271 | color: #999; 272 | } 273 | .select2-container--bootstrap .select2-selection--multiple { 274 | min-height: 34px; 275 | padding: 0; 276 | height: auto; 277 | /** 278 | * Make Multi Select2's choices match Bootstrap 3's default button styles. 279 | */ 280 | /** 281 | * Minus 2px borders. 282 | */ 283 | /** 284 | * Clear the selection. 285 | */ 286 | } 287 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered { 288 | -webkit-box-sizing: border-box; 289 | -moz-box-sizing: border-box; 290 | box-sizing: border-box; 291 | display: block; 292 | line-height: 1.428571429; 293 | list-style: none; 294 | margin: 0; 295 | overflow: hidden; 296 | padding: 0; 297 | width: 100%; 298 | text-overflow: ellipsis; 299 | white-space: nowrap; 300 | } 301 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__placeholder { 302 | color: #999; 303 | float: left; 304 | margin-top: 5px; 305 | } 306 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice { 307 | color: #555555; 308 | background: #fff; 309 | border: 1px solid #ccc; 310 | border-radius: 4px; 311 | cursor: default; 312 | float: left; 313 | margin: 5px 0 0 6px; 314 | padding: 0 6px; 315 | } 316 | .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field { 317 | background: transparent; 318 | padding: 0 12px; 319 | height: 32px; 320 | line-height: 1.428571429; 321 | margin-top: 0; 322 | min-width: 5em; 323 | } 324 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove { 325 | color: #999; 326 | cursor: pointer; 327 | display: inline-block; 328 | font-weight: bold; 329 | margin-right: 3px; 330 | } 331 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove:hover { 332 | color: #333; 333 | } 334 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear { 335 | margin-top: 6px; 336 | } 337 | .select2-container--bootstrap .select2-selection--single.input-sm, .input-group-sm .select2-container--bootstrap .select2-selection--single, .form-group-sm .select2-container--bootstrap .select2-selection--single { 338 | border-radius: 3px; 339 | font-size: 12px; 340 | height: 30px; 341 | line-height: 1.5; 342 | padding: 5px 22px 5px 10px; 343 | /* 2 */ 344 | } 345 | .select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b, .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b { 346 | margin-left: -5px; 347 | } 348 | .select2-container--bootstrap .select2-selection--multiple.input-sm, .input-group-sm .select2-container--bootstrap .select2-selection--multiple, .form-group-sm .select2-container--bootstrap .select2-selection--multiple { 349 | min-height: 30px; 350 | border-radius: 3px; 351 | } 352 | .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice { 353 | font-size: 12px; 354 | line-height: 1.5; 355 | margin: 4px 0 0 5px; 356 | padding: 0 5px; 357 | } 358 | .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field { 359 | padding: 0 10px; 360 | font-size: 12px; 361 | height: 28px; 362 | line-height: 1.5; 363 | } 364 | .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear { 365 | margin-top: 5px; 366 | } 367 | .select2-container--bootstrap .select2-selection--single.input-lg, .input-group-lg .select2-container--bootstrap .select2-selection--single, .form-group-lg .select2-container--bootstrap .select2-selection--single { 368 | border-radius: 6px; 369 | font-size: 18px; 370 | height: 46px; 371 | line-height: 1.3333333; 372 | padding: 10px 31px 10px 16px; 373 | /* 1 */ 374 | } 375 | .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow, .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow { 376 | width: 5px; 377 | } 378 | .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b { 379 | border-width: 5px 5px 0 5px; 380 | margin-left: -5px; 381 | margin-left: -10px; 382 | margin-top: -2.5px; 383 | } 384 | .select2-container--bootstrap .select2-selection--multiple.input-lg, .input-group-lg .select2-container--bootstrap .select2-selection--multiple, .form-group-lg .select2-container--bootstrap .select2-selection--multiple { 385 | min-height: 46px; 386 | border-radius: 6px; 387 | } 388 | .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice { 389 | font-size: 18px; 390 | line-height: 1.3333333; 391 | border-radius: 4px; 392 | margin: 9px 0 0 8px; 393 | padding: 0 10px; 394 | } 395 | .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field { 396 | padding: 0 16px; 397 | font-size: 18px; 398 | height: 44px; 399 | line-height: 1.3333333; 400 | } 401 | .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear { 402 | margin-top: 10px; 403 | } 404 | .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single { 405 | /** 406 | * Make the dropdown arrow point up while the dropdown is visible. 407 | */ 408 | } 409 | .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b { 410 | border-color: transparent transparent #999 transparent; 411 | border-width: 0 5px 5px 5px; 412 | } 413 | .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single { 414 | /** 415 | * Make the dropdown arrow point up while the dropdown is visible. 416 | */ 417 | } 418 | .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b { 419 | border-color: transparent transparent #999 transparent; 420 | border-width: 0 5px 5px 5px; 421 | } 422 | .select2-container--bootstrap[dir="rtl"] { 423 | /** 424 | * Single Select2 425 | * 426 | * 1. Makes sure that .select2-selection__placeholder is positioned 427 | * correctly. 428 | */ 429 | /** 430 | * Multiple Select2 431 | */ 432 | } 433 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single { 434 | padding-left: 24px; 435 | padding-right: 12px; 436 | } 437 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__rendered { 438 | padding-right: 0; 439 | padding-left: 0; 440 | text-align: right; 441 | /* 1 */ 442 | } 443 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__clear { 444 | float: left; 445 | } 446 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow { 447 | left: 12px; 448 | right: auto; 449 | } 450 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow b { 451 | margin-left: 0; 452 | } 453 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice, 454 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder { 455 | float: right; 456 | } 457 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice { 458 | margin-left: 0; 459 | margin-right: 6px; 460 | } 461 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove { 462 | margin-left: 2px; 463 | margin-right: auto; 464 | } 465 | 466 | /*------------------------------------*\ 467 | #ADDITIONAL GOODIES 468 | \*------------------------------------*/ 469 | /** 470 | * Address Bootstrap's validation states 471 | * 472 | * If a Select2 widget parent has one of Bootstrap's validation state modifier 473 | * classes, adjust Select2's border colors and focus states accordingly. 474 | * You may apply said classes to the Select2 dropdown (body > .select2-container) 475 | * via JavaScript match Bootstraps' to make its styles match. 476 | * 477 | * @see http://getbootstrap.com/css/#forms-control-validation 478 | */ 479 | .has-warning .select2-dropdown, 480 | .has-warning .select2-selection { 481 | border-color: #8a6d3b; 482 | } 483 | .has-warning .select2-container--focus .select2-selection, 484 | .has-warning .select2-container--open .select2-selection { 485 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; 486 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; 487 | border-color: #66512c; 488 | } 489 | .has-warning.select2-drop-active { 490 | border-color: #66512c; 491 | } 492 | .has-warning.select2-drop-active.select2-drop.select2-drop-above { 493 | border-top-color: #66512c; 494 | } 495 | 496 | .has-error .select2-dropdown, 497 | .has-error .select2-selection { 498 | border-color: #a94442; 499 | } 500 | .has-error .select2-container--focus .select2-selection, 501 | .has-error .select2-container--open .select2-selection { 502 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; 503 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; 504 | border-color: #843534; 505 | } 506 | .has-error.select2-drop-active { 507 | border-color: #843534; 508 | } 509 | .has-error.select2-drop-active.select2-drop.select2-drop-above { 510 | border-top-color: #843534; 511 | } 512 | 513 | .has-success .select2-dropdown, 514 | .has-success .select2-selection { 515 | border-color: #3c763d; 516 | } 517 | .has-success .select2-container--focus .select2-selection, 518 | .has-success .select2-container--open .select2-selection { 519 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; 520 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; 521 | border-color: #2b542c; 522 | } 523 | .has-success.select2-drop-active { 524 | border-color: #2b542c; 525 | } 526 | .has-success.select2-drop-active.select2-drop.select2-drop-above { 527 | border-top-color: #2b542c; 528 | } 529 | 530 | /** 531 | * Select2 widgets in Bootstrap Input Groups 532 | * 533 | * When Select2 widgets are combined with other elements using Bootstraps 534 | * "Input Group" component, we don't want specific edges of the Select2 535 | * container to have a border-radius. 536 | * 537 | * Use .select2-bootstrap-prepend and .select2-bootstrap-append on 538 | * a Bootstrap 3 .input-group to let the contained Select2 widget know which 539 | * edges should not be rounded as they are directly followed by another element. 540 | * 541 | * @see http://getbootstrap.com/components/#input-groups 542 | */ 543 | /** 544 | * Mimick Bootstraps .input-group .form-control styles. 545 | * 546 | * @see https://github.com/twbs/bootstrap/blob/master/less/input-groups.less 547 | */ 548 | .input-group .select2-container--bootstrap { 549 | display: table; 550 | table-layout: fixed; 551 | position: relative; 552 | z-index: 2; 553 | float: left; 554 | width: 100%; 555 | margin-bottom: 0; 556 | /** 557 | * Adjust z-index like Bootstrap does to show the focus-box-shadow 558 | * above appended buttons in .input-group and .form-group. 559 | */ 560 | } 561 | .input-group .select2-container--bootstrap.select2-container--open, .input-group .select2-container--bootstrap.select2-container--focus { 562 | z-index: 3; 563 | } 564 | 565 | .input-group.select2-bootstrap-prepend .select2-container--bootstrap .select2-selection { 566 | border-bottom-left-radius: 0; 567 | border-top-left-radius: 0; 568 | } 569 | 570 | .input-group.select2-bootstrap-append .select2-container--bootstrap .select2-selection { 571 | border-bottom-right-radius: 0; 572 | border-top-right-radius: 0; 573 | } 574 | 575 | /** 576 | * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address 577 | * Multi Select2's height which - depending on how many elements have been selected - 578 | * may grow taller than its initial size. 579 | * 580 | * @see http://getbootstrap.com/components/#input-groups 581 | */ 582 | .select2-bootstrap-append .select2-container--bootstrap, 583 | .select2-bootstrap-append .input-group-btn, 584 | .select2-bootstrap-append .input-group-btn .btn, 585 | .select2-bootstrap-prepend .select2-container--bootstrap, 586 | .select2-bootstrap-prepend .input-group-btn, 587 | .select2-bootstrap-prepend .input-group-btn .btn { 588 | vertical-align: top; 589 | } 590 | 591 | /** 592 | * Temporary fix for https://github.com/select2/select2-bootstrap-theme/issues/9 593 | * 594 | * Provides `!important` for certain properties of the class applied to the 595 | * original `