diff --git a/atlas/templates/atlas/collection_viva.html b/atlas/templates/atlas/collection_viva.html index c1832990..c4f2e742 100644 --- a/atlas/templates/atlas/collection_viva.html +++ b/atlas/templates/atlas/collection_viva.html @@ -33,7 +33,7 @@ var win2 = false; }); $('.open-case').click(function() { var url = $(this).data('target'); - if (win2 == false || win2.closed) { + if (win2 == false) { win2 = openSecondaryWindow(url); console.log('opened', win2) } else {