diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-08 16:23:59 +0100 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-04-20 15:42:09 -0400 |
commit | 7617ae25658907556e3b4c270e1e6717b8711052 (patch) | |
tree | c1c7102871ca82c5b020b0748b10e2d9009df5e7 /app | |
parent | aa22106b3097a34c3a490554c4239af6665ade8e (diff) | |
download | gitlab-ce-7617ae25658907556e3b4c270e1e6717b8711052.tar.gz |
Fixed issue with selectbox not hiding
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/due_date_select.js.coffee | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/due_date_select.js.coffee b/app/assets/javascripts/due_date_select.js.coffee index cc7ad5fb005..edc28954aaf 100644 --- a/app/assets/javascripts/due_date_select.js.coffee +++ b/app/assets/javascripts/due_date_select.js.coffee @@ -1,12 +1,13 @@ 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() |