diff --git a/l4d2web/l4d2web/static/js/editor.js b/l4d2web/l4d2web/static/js/editor.js index a1d701f..4d63801 100644 --- a/l4d2web/l4d2web/static/js/editor.js +++ b/l4d2web/l4d2web/static/js/editor.js @@ -46,7 +46,7 @@ let filenameInput = null; let dropdown = null; if (lang === "auto") { - const modal = textarea.closest("#files-editor-modal") || document; + const modal = textarea.closest("#files-editor-modal, #files-editor-fragment") || document; filenameInput = modal.querySelector("[data-editor-filename]"); dropdown = modal.querySelector("[data-editor-language-select]"); lang = resolveAutoLanguage(filenameInput); diff --git a/l4d2web/l4d2web/templates/base.html b/l4d2web/l4d2web/templates/base.html index 3cdbbb1..2553154 100644 --- a/l4d2web/l4d2web/templates/base.html +++ b/l4d2web/l4d2web/templates/base.html @@ -37,7 +37,7 @@
{% block content %}{% endblock %}
- + diff --git a/l4d2web/l4d2web/templates/overlay_file_editor.html b/l4d2web/l4d2web/templates/overlay_file_editor.html index 12b01aa..714f752 100644 --- a/l4d2web/l4d2web/templates/overlay_file_editor.html +++ b/l4d2web/l4d2web/templates/overlay_file_editor.html @@ -2,7 +2,7 @@ {% block title %}Edit {{ rel_path }} ยท {{ overlay.name }}{% endblock %} {% block extra_head %}{% include "_editor_assets.html" %}{% endblock %} {% block content %} -
+