mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 04:26:08 +10:00
Also License dropdown has been ported to use our GL dropdown instead of Select2. Fixes tests to make it work with current implementation
18 lines
438 B
CoffeeScript
18 lines
438 B
CoffeeScript
class @BlobGitignoreSelectors
|
|
constructor: (opts) ->
|
|
{
|
|
@$dropdowns = $('.js-gitignore-selector')
|
|
@editor
|
|
} = opts
|
|
|
|
@$dropdowns.each (i, dropdown) =>
|
|
$dropdown = $(dropdown)
|
|
|
|
new BlobGitignoreSelector(
|
|
pattern: /(.gitignore)/,
|
|
data: $dropdown.data('data'),
|
|
wrapper: $dropdown.closest('.js-gitignore-selector-wrap'),
|
|
dropdown: $dropdown,
|
|
editor: @editor
|
|
)
|