Commit 7617ae25 authored by Phil Hughes's avatar Phil Hughes Committed by Robert Speicher

Fixed issue with selectbox not hiding

parent aa22106b
class @DueDateSelect
constructor: ->
$loading = $('.js-issuable-update .due_date').find('.block-loading').hide()
$('.js-due-date-select').each (i, dropdown) ->
$dropdown = $(dropdown)
$dropdownParent = $dropdown.closest('.dropdown')
$addBtn = $('.js-due-date-add', $dropdownParent)
$datePicker = $dropdownParent.find('.js-due-date-calendar')
$block = $dropdown.closest('.block')
$loading = $block.find('.block-loading').hide()
$selectbox = $dropdown.closest('.selectbox')
$value = $block.find('.value')
......@@ -14,6 +15,12 @@ class @DueDateSelect
abilityName = $dropdown.data('ability-name')
issueUpdateURL = $dropdown.data('issue-update')
$dropdown.glDropdown(
hidden: ->
$selectbox.hide()
$value.removeAttr('style')
)
$addBtn.on 'click', (e) ->
e.preventDefault()
e.stopPropagation()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment