Merge pull request #2584 from aignatov-bio/ai-sci-4654-clear-fullview-modal-before-open

Clear full view repository modal before open [SCI-4654]
This commit is contained in:
aignatov-bio 2020-05-20 09:45:26 +02:00 committed by GitHub
commit 51d9f054ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,6 +417,13 @@ var MyModuleRepositories = (function() {
FULL_VIEW_MODAL.find('.repository-versions-sidebar').empty();
FULL_VIEW_MODAL.find('.modal-content').removeClass('show-sidebar');
FULL_VIEW_MODAL.find('#showVersionsSidebar').removeClass('active');
FULL_VIEW_TABLE.destroy();
});
FULL_VIEW_MODAL.on('show.bs.modal', function() {
FULL_VIEW_MODAL.find('.table-container').empty();
FULL_VIEW_MODAL.find('.repository-name').empty();
updateFullViewRowsCount('');
});
}