BigW Consortium Gitlab

issuable_context.js.coffee 606 Bytes
Newer Older
1 2 3 4 5 6 7
#= require jquery.waitforimages

class @IssuableContext
  constructor: ->
    new UsersSelect()
    $('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})

8
    $(".issuable-sidebar .inline-update").on "change", "select", ->
9
      $(this).submit()
10
    $(".issuable-sidebar .inline-update").on "change", ".js-assignee", ->
11 12
      $(this).submit()

13
    $(document).on "click",".edit-link", (e) ->
14 15 16 17
      block = $(@).parents('.block')
      block.find('.selectbox').show()
      block.find('.value').hide()
      block.find('.js-select2').select2("open")
18 19

    $(".right-sidebar").niceScroll()