From e7d457da1967ec72b80bdb46186d4dc1a984196b Mon Sep 17 00:00:00 2001 From: Stoyan Zlatev Date: Tue, 11 Apr 2023 14:18:12 +0200 Subject: [PATCH] HeProtocol - by cloasing of the modal hash value cleared --- .../LaaProductionWeb/Views/Protocol/Body.cshtml | 2 +- .../LaaProductionWeb/Views/Report/Index.cshtml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml b/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml index 58c26bc0..f5997cce 100644 --- a/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml +++ b/LaaProductionWeb/LaaProductionWeb/Views/Protocol/Body.cshtml @@ -56,7 +56,7 @@ - +
diff --git a/LaaProductionWeb/LaaProductionWeb/Views/Report/Index.cshtml b/LaaProductionWeb/LaaProductionWeb/Views/Report/Index.cshtml index d6b0fb42..8198df95 100644 --- a/LaaProductionWeb/LaaProductionWeb/Views/Report/Index.cshtml +++ b/LaaProductionWeb/LaaProductionWeb/Views/Report/Index.cshtml @@ -88,8 +88,8 @@ - - + + @@ -107,7 +107,11 @@ .forEach(x => x.onchange = () => form.submit()); let tbody = this.document.getElementById('tbody'); + let modal = this.document.getElementById('modal'); let modalBtn = this.document.getElementById('modal_btn'); + + modal.addEventListener('hide.bs.modal', x => this.location.hash = ''); + window.addEventListener('hashchange', function () { tbody.innerHTML = null; if (location.hash) {
Legend: Component & Operation
Test IdPint NrResultPunkt NrErgebniss