diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index 356c3522b..659c06797 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -435,7 +435,14 @@ sort: projectsViewSort }, success: function(data) { - viewContainer.html(data.html); + if (data.html.search('id="edit-project-cards-form-') > 0) { + $('#projects-absent').hide(); + $('#projects-present').show(); + viewContainer.html(data.html); + } else { + $('#projects-present').hide(); + $('#projects-absent').show(); + } initFormSubmitLinks(viewContainer); init(); }, diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 675f8cc83..94118b517 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -29,7 +29,7 @@