diff --git a/app/assets/javascripts/application/collections.coffee b/app/assets/javascripts/application/collections.coffee index cb07ce3352406fda2aa39219941e727a641f371a..64dcf6cbbec832074575688efcbf537e9bdc5bf6 100644 --- a/app/assets/javascripts/application/collections.coffee +++ b/app/assets/javascripts/application/collections.coffee @@ -173,12 +173,12 @@ $(document).on 'refresh_comments', (e) -> $.get url, (data) -> $parent.html('<br>' + data) num = $('.learning-object-vertical').length - if num == 0 - $('.object-number').html("coleção vazia") - else if num == 1 + if num == 1 $('.object-number').html("1 objeto") - else + else if num > 1 $('.object-number').html( num + " objetos") + else + $('.object-number').html("coleção vazia") $(document).trigger 'create-learning-object-columns' $(document).trigger 'add_collection_selector'