Hide results-container instead of table and remove plain text

pull/6827/head
Henriette Dinger 9 years ago
parent 8b09f65bc4
commit d17acdae90
  1. 4
      app/assets/javascripts/global_roles/principal_roles.js
  2. 2
      app/views/users/_global_roles.html.erb

@ -25,12 +25,12 @@
set_table_visibility: function(){
if ($('#table_principal_roles_body tr').length > 0){
$('#table_principal_roles').show();
$('.generic-table--results-container').show();
$('.generic-table--no-results-container').hide();
}
else
{
$('#table_principal_roles').hide();
$('.generic-table--results-container').hide();
$('.generic-table--no-results-container').show();
}
},

@ -58,7 +58,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<%= l(:label_nothing_display) %>
</h2>
<div class="generic-table--no-results-description">
<p>Either nothing have been created or everything is filtered out.</p>
<p class="nodata"><%= l(:label_no_data) %></p>
</div>
</div>
</div>

Loading…
Cancel
Save