From 408dd7dcd895ce8ba4946d2dfb78d6c60a9db042 Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Mon, 30 Jan 2023 15:33:08 +0100 Subject: [PATCH] Reinitialize the Table when switching the View from archived to active [SCI-7674] --- app/assets/javascripts/repositories/show.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); }