diff --git a/files/assets/js/core.js b/files/assets/js/core.js index c64176353..daf598d79 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -488,7 +488,7 @@ function handle_files(input, newfiles) { oldfiles[ta.id].push(file) if (span.innerHTML != ' ') span.innerHTML += ', ' span.innerHTML += file.name.substr(0, 30); - if (location.pathname != '/chat') + if (location.pathname != '/chat' && location.pathname != '/old_chat') insertText(ta, `[${file.name}]`); } diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 074aef595..fa6a5b9b2 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -420,7 +420,7 @@ function populate_speed_emoji_modal(results, textbox) close_inline_speed_emoji_modal() textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `:${name}: `) textbox.focus() - if (document.location.pathname != '/chat'){ + if (document.location.pathname != '/chat' && document.location.pathname != '/old_chat'){ markdown(textbox) } }); diff --git a/files/templates/header.html b/files/templates/header.html index b6a8ff41f..25e03d6df 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -372,7 +372,7 @@ {% endif %}
  • - {% if request.path.endswith("/chat") %} + {% if request.path.endswith("/chat") or request.path.endswith("/old_chat") %}
    Users Online




    diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index 60ea2089b..7779eccfd 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -137,8 +137,11 @@ {% endif %} {% endif %} - {% if request.path.endswith('/chat') %} + {% if request.path.endswith('/chat') or request.path.endswith('/old_chat') %} + {% endif %} + + {% if request.path.endswith('/chat') %} {% endif %} {% endmacro %}