Skip to content

Commit f928d89

Browse files
committed
Upgrade select2 theme to boostrap4
1 parent 9dee986 commit f928d89

File tree

4 files changed

+819
-3
lines changed

4 files changed

+819
-3
lines changed

app/assets/javascripts/select2-rails.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
window.Binco.Select2 =
22
load: (selector) ->
33
selector = if typeof selector == 'string' then selector else '.select2-rails'
4-
$(selector).select2()
4+
$(selector).select2(
5+
theme: "bootstrap"
6+
)
57
destroy: (selector) ->
68
selector = if typeof selector == 'string' then selector else '.select2-rails'
79
$(selector).each((i,e) ->

0 commit comments

Comments
 (0)