debian-mirror-gitlab/app/assets/javascripts/issuable_context.js.coffee

20 lines
606 B
CoffeeScript
Raw Normal View History

2015-09-11 14:41:01 +05:30
#= require jquery.waitforimages
class @IssuableContext
constructor: ->
new UsersSelect()
$('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})
2015-12-23 02:04:40 +05:30
$(".issuable-sidebar .inline-update").on "change", "select", ->
2015-09-11 14:41:01 +05:30
$(this).submit()
2015-12-23 02:04:40 +05:30
$(".issuable-sidebar .inline-update").on "change", ".js-assignee", ->
2015-09-11 14:41:01 +05:30
$(this).submit()
2016-04-02 18:10:28 +05:30
$(document).on "click",".edit-link", (e) ->
2015-12-23 02:04:40 +05:30
block = $(@).parents('.block')
block.find('.selectbox').show()
block.find('.value').hide()
block.find('.js-select2').select2("open")
2016-04-02 18:10:28 +05:30
$(".right-sidebar").niceScroll()