e8a467e094
Also License dropdown has been ported to use our GL dropdown instead of Select2. Fixes tests to make it work with current implementation
17 lines
453 B
CoffeeScript
17 lines
453 B
CoffeeScript
class @BlobLicenseSelectors
|
|
constructor: (opts) ->
|
|
{
|
|
@$dropdowns = $('.js-license-selector')
|
|
@editor
|
|
} = opts
|
|
|
|
@$dropdowns.each (i, dropdown) =>
|
|
$dropdown = $(dropdown)
|
|
|
|
new BlobLicenseSelector(
|
|
pattern: /^(.+\/)?(licen[sc]e|copying)($|\.)/i,
|
|
data: $dropdown.data('data'),
|
|
wrapper: $dropdown.closest('.js-license-selector-wrap'),
|
|
dropdown: $dropdown,
|
|
editor: @editor
|
|
)
|