Fixed link
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
</p>
|
||||
|
||||
<div class="action-row">
|
||||
<a id="preview_link" href="/zeiten?test=1" target="_blank" class="btn" style="background: #2ed573;">➔ Vorschau mit Test-Hintergrund</a>
|
||||
<a id="preview_link" href="{{ url_for('public_table') }}?test=1" target="_blank" class="btn" style="background: #2ed573;">➔ Vorschau mit Test-Hintergrund</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -81,7 +81,8 @@
|
||||
function updateUrl() {
|
||||
const days = parseInt(daysInput.value) || 0;
|
||||
const lines = parseInt(linesInput.value) || 0;
|
||||
|
||||
const baseUrl = "{{ url_for('public_table') }}";
|
||||
|
||||
let url = "/zeiten?test=1";
|
||||
|
||||
if (lines > 0) {
|
||||
@@ -90,7 +91,7 @@
|
||||
url += `&days=${days}`;
|
||||
}
|
||||
|
||||
previewLink.href = url;
|
||||
previewLink.href = `${baseUrl}?test=1${params}`;
|
||||
}
|
||||
|
||||
daysInput.addEventListener('input', updateUrl);
|
||||
|
||||
Reference in New Issue
Block a user