diff --git a/app/assets/javascripts/repositories/show.js b/app/assets/javascripts/repositories/show.js index ad9e01d30..d0360ae68 100644 --- a/app/assets/javascripts/repositories/show.js +++ b/app/assets/javascripts/repositories/show.js @@ -152,12 +152,12 @@ viewSwitch.on('click', '.view-switch-archived', function() { $('.repository-show').removeClass('active').addClass('archived'); $('#manage-repository-column').removeClass('active').addClass('archived'); - RepositoryDatatable.reload(); + initTable(); }); viewSwitch.on('click', '.view-switch-active', function() { $('.repository-show').removeClass('archived').addClass('active'); $('#manage-repository-column').removeClass('archived').addClass('active'); - RepositoryDatatable.reload(); + initTable(); }); }