2015-06-25 10:04:50 -04:00
|
|
|
#= require jquery.waitforimages
|
|
|
|
|
|
|
|
class @IssuableContext
|
|
|
|
constructor: ->
|
|
|
|
new UsersSelect()
|
|
|
|
$('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})
|
|
|
|
|
2015-12-10 13:04:34 -05:00
|
|
|
$(".issuable-sidebar .inline-update").on "change", "select", ->
|
2015-06-25 10:04:50 -04:00
|
|
|
$(this).submit()
|
2015-12-10 13:04:34 -05:00
|
|
|
$(".issuable-sidebar .inline-update").on "change", ".js-assignee", ->
|
2015-06-25 10:04:50 -04:00
|
|
|
$(this).submit()
|
|
|
|
|
2016-02-02 19:42:19 -05:00
|
|
|
$(document).on "click",".edit-link", (e) ->
|
2015-12-10 13:04:34 -05:00
|
|
|
block = $(@).parents('.block')
|
|
|
|
block.find('.selectbox').show()
|
|
|
|
block.find('.value').hide()
|
|
|
|
block.find('.js-select2').select2("open")
|
2016-02-18 10:55:30 -05:00
|
|
|
|
|
|
|
$(".right-sidebar").niceScroll()
|