HeProtocol - by cloasing of the modal hash value cleared
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user