Commit e219867c authored by Phil Hughes's avatar Phil Hughes Committed by Robert Speicher

Updates sidebar value

parent 720da419
......@@ -10,6 +10,7 @@ class @DueDateSelect
$block = $dropdown.closest('.block')
$selectbox = $dropdown.closest('.selectbox')
$value = $block.find('.value')
$sidebarValue = $('.js-due-date-sidebar-value', $block)
fieldName = $dropdown.data('field-name')
abilityName = $dropdown.data('ability-name')
......@@ -44,8 +45,10 @@ class @DueDateSelect
$value.removeAttr('style')
$value.html(mediumDate)
$sidebarValue.html(mediumDate)
).done (data) ->
$dropdown.trigger('loaded.gl.dropdown')
$dropdown.trigger('hidden.gl.dropdown')
$loading.fadeOut()
$datePicker.datepicker(
......
......@@ -78,7 +78,7 @@
.block.due_date
.sidebar-collapsed-icon
= icon('calendar')
%span
%span.js-due-date-sidebar-value
- if issuable.due_date
= issuable.due_date.to_s(:medium)
- else
......
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