summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-13 18:25:39 -0400
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-13 18:25:39 -0400
commit6745e58f8f809a6813ac42fcd2ac82729234df1e (patch)
tree941bcde786d01a30a0c6ade318b78dd13a2947e2
parent22c089c2fd8ebc5c2e1f5768afd3d5accfd6c9bb (diff)
downloadgitlab-ce-6745e58f8f809a6813ac42fcd2ac82729234df1e.tar.gz
Fix issue with labels not showing initially.
-rw-r--r--app/assets/javascripts/lib/animate.js.coffee2
-rw-r--r--app/views/shared/issuable/_filter.html.haml4
2 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/lib/animate.js.coffee b/app/assets/javascripts/lib/animate.js.coffee
index 64aef4c6d43..ec3b44d6126 100644
--- a/app/assets/javascripts/lib/animate.js.coffee
+++ b/app/assets/javascripts/lib/animate.js.coffee
@@ -19,6 +19,8 @@
gl.animate.animateEach = ($els, animation, time, options, done) ->
dfd = $.Deferred()
+ if not $els.length
+ dfd.resolve()
$els.each((i) ->
setTimeout(=>
$this = $(@)
diff --git a/app/views/shared/issuable/_filter.html.haml b/app/views/shared/issuable/_filter.html.haml
index 02982516de9..623ca5ab98f 100644
--- a/app/views/shared/issuable/_filter.html.haml
+++ b/app/views/shared/issuable/_filter.html.haml
@@ -46,9 +46,9 @@
.filter-item.inline
= button_tag "Update issues", class: "btn update_selected_issues btn-save"
-- if @labels
.gray-content-block.second-block.filtered-labels
- = render "shared/label_row", labels: @labels
+ - if @labels
+ = render "shared/label_row", labels: @labels
:javascript
new UsersSelect();