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

issue.js.coffee « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9b7c1be8355855dddc3bffa103e9555a821b7b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class @Issue
  constructor: ->
    $('.edit-issue.inline-update input[type="submit"]').hide()
    $(".context .inline-update").on "change", "select", ->
      $(this).submit()
    $(".context .inline-update").on "change", "#issue_assignee_id", ->
      $(this).submit()

    if $("a.btn-close").length
      $("li.task-list-item input:checkbox").prop("disabled", false)

    $(".task-list-item input:checkbox").on(
      "click"
      null
      "issue"
      updateTaskState
    )

    $('.issuable-affix').affix offset:
      top: ->
        @top = $('.issue-details').outerHeight(true) + 25
      bottom: ->
        @bottom = $('.footer').outerHeight(true)