Welcome to mirror list, hosted at ThFree Co, Russian Federation.

labels.js.coffee « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6ab3f9ee125f6497d38bd6417f53341c295ba09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Labels
  constructor: ->
    # find the form
    form = $('.label-form')
    @setupLabelForm(form)

  ###
  General note form setup.

  deactivates the submit button when text is empty
  hides the preview button when text is empty
  setup GFM auto complete
  show the form
  ###
  setupLabelForm: (form) ->
    disableButtonIfEmptyField form, '.form-control', form.find('.js-save-button')

@Labels = Labels