timedelta error fix
This commit is contained in:
parent
54ec3d6e2d
commit
61a5d030a5
@ -87,21 +87,6 @@
|
|||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{% if config is defined and config is not none %}
|
|
||||||
<script>
|
|
||||||
// Config + globale Sounds nur setzen, wenn config wirklich existiert
|
|
||||||
window.mkConfig = {{ config | tojson | safe }};
|
|
||||||
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
|
||||||
|
|
||||||
console.log("base.html → mkConfig gesetzt:", window.mkConfig);
|
|
||||||
console.log("base.html → mkGlobalSounds:", window.mkGlobalSounds);
|
|
||||||
</script>
|
|
||||||
{% else %}
|
|
||||||
<script>
|
|
||||||
console.log("base.html → Keine config auf dieser Seite – mkConfig nicht gesetzt");
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<!-- Alle JS-Module laden (immer) -->
|
<!-- Alle JS-Module laden (immer) -->
|
||||||
<script src="{{ url_for('static', filename='js/config.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/config.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/ui-status.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/ui-status.js') }}"></script>
|
||||||
|
|||||||
@ -167,22 +167,14 @@
|
|||||||
|
|
||||||
<!-- Seiten-spezifische Config setzen (nur wenn config existiert) -->
|
<!-- Seiten-spezifische Config setzen (nur wenn config existiert) -->
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{% if config %}
|
{% super() %} <!-- Ruft den Basis-Block auf (Module laden + Initialisierung) -->
|
||||||
<script>
|
|
||||||
// Config + globale Sounds global verfügbar machen (nur auf Seiten mit config)
|
|
||||||
window.mkConfig = {{ config | tojson | safe }};
|
|
||||||
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
|
||||||
|
|
||||||
console.log("base.html → mkConfig gesetzt:", window.mkConfig);
|
<script>
|
||||||
console.log("base.html → mkGlobalSounds:", window.mkGlobalSounds);
|
// Config + globale Sounds global verfügbar machen (nur auf dieser Seite)
|
||||||
|
window.mkConfig = {{ config | tojson | safe }};
|
||||||
|
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
||||||
|
|
||||||
// Module initialisieren (kann auch in app.js passieren, hier nur für Sicherheit)
|
console.log("control.html → mkConfig gesetzt:", window.mkConfig);
|
||||||
initConfig();
|
console.log("control.html → mkGlobalSounds:", window.mkGlobalSounds);
|
||||||
initStatus();
|
</script>
|
||||||
initConnect();
|
|
||||||
initChannels();
|
|
||||||
initSoundboard();
|
|
||||||
// connection-check wird von connect/reconnect aufgerufen
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
x
Reference in New Issue
Block a user