debian-mirror-gitlab/app/assets/javascripts/blob/blob_license_selector.js.coffee

10 lines
273 B
CoffeeScript
Raw Normal View History

2016-06-22 15:30:34 +05:30
#= require blob/template_selector
2016-06-02 11:05:42 +05:30
2016-06-22 15:30:34 +05:30
class @BlobLicenseSelector extends TemplateSelector
requestFile: (query) ->
data =
project: @dropdown.data('project')
fullname: @dropdown.data('fullname')
2016-06-02 11:05:42 +05:30
2016-06-22 15:30:34 +05:30
Api.licenseText query.id, data, @requestFileSuccess.bind(@)