BigW Consortium Gitlab

Commit 1a7ccd0f by Phil Hughes

Removed animation from labels filter

parent 5cefd8ab
......@@ -29,11 +29,9 @@
toggleLabelFilters: ()->
$filteredLabels = $('.filtered-labels')
if $filteredLabels.find('.label-row').length > 0
#$filteredLabels.show()
$filteredLabels.slideDown().css({'overflow':'visible'})
$filteredLabels.removeClass('hidden')
else
#$filteredLabels.hide()
$filteredLabels.slideUp().css({'overflow':'visible'})
$filteredLabels.addClass('hidden')
reload: ->
Issues.initChecks()
......@@ -96,25 +94,11 @@
Issues.reload()
Issues.updateStateFilters()
$filteredLabels = $('.filtered-labels')
$filteredLabelsSpans = $filteredLabels.find('.label-row')
gl.animate.animateEach(
$filteredLabelsSpans, 'fadeOutDown', 20,
cssStart:
opacity: 1
cssEnd:
opacity: 0
).then( ->
if typeof Issue.labelRow is 'function'
$filteredLabels.html(Issue.labelRow(data))
Issues.toggleLabelFilters()
$spans = $filteredLabels.find('.label-row')
$spans.css('opacity', 0)
return gl.animate.animateEach $spans, 'fadeInUp', 20,
cssStart:
opacity: 0
cssEnd:
opacity: 1
)
if typeof Issue.labelRow is 'function'
$filteredLabels.html(Issue.labelRow(data))
Issues.toggleLabelFilters()
dataType: "json"
......
- labels.each do |label|
%span.label-row
= link_to_label(label, tooltip: false)
\ No newline at end of file
= link_to_label(label, tooltip: false)
......@@ -46,7 +46,7 @@
.filter-item.inline
= button_tag "Update issues", class: "btn update_selected_issues btn-save"
.gray-content-block.second-block.filtered-labels
.gray-content-block.second-block.filtered-labels{ class: ("hidden" if !@labels) }
- if @labels
= render "shared/labels_row", labels: @labels
......
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