mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 03:26:07 +10:00
Uses cross browser niceScroll to do scrolling on sidebar. Fixes: #13544 Firefox does not support `-webkit-scrollbar` and there is no alternative for FF. So for example Gmail falls back to no fancy scrollbar. Stuck with jQuery, which is a good solution, since we already use it. This also leaves the default scrollbar as is.  Also fixes horz scroll issue:  cc @creamzy @dzaporozhets See merge request !2873
20 lines
606 B
CoffeeScript
20 lines
606 B
CoffeeScript
#= require jquery.waitforimages
|
|
|
|
class @IssuableContext
|
|
constructor: ->
|
|
new UsersSelect()
|
|
$('select.select2').select2({width: 'resolve', dropdownAutoWidth: true})
|
|
|
|
$(".issuable-sidebar .inline-update").on "change", "select", ->
|
|
$(this).submit()
|
|
$(".issuable-sidebar .inline-update").on "change", ".js-assignee", ->
|
|
$(this).submit()
|
|
|
|
$(document).on "click",".edit-link", (e) ->
|
|
block = $(@).parents('.block')
|
|
block.find('.selectbox').show()
|
|
block.find('.value').hide()
|
|
block.find('.js-select2').select2("open")
|
|
|
|
$(".right-sidebar").niceScroll()
|