HeProtocol - by cloasing of the modal hash value cleared

This commit is contained in:
Stoyan Zlatev
2023-04-11 14:18:12 +02:00
parent 4d47b81760
commit e7d457da19
2 changed files with 7 additions and 3 deletions
@@ -56,7 +56,7 @@
</tr>
<tr>
<td colspan="2" class="pt-5 pb-0 px-0 small">
<table class="table table-sm table-bordered border-top text-secondary">
<table class="table table-sm table-bordered border-top">
<tr>
<th>Legend:</th>
<th>Component & Operation</th>
@@ -88,8 +88,8 @@
<thead>
<tr>
<th>Test Id</th>
<th>Pint Nr</th>
<th>Result</th>
<th>Punkt Nr</th>
<th>Ergebniss</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
@@ -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) {