summaryrefslogtreecommitdiff
path: root/templates/main.js
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-10 12:48:59 +0100
committerczaks <marcin@6irc.net>2015-03-10 12:48:59 +0100
commitbdb6001f3f7e93e0b9655c0491bbef6f1df8a5fa (patch)
tree4f4007d1b090694746fc6d36a19dd8accfd3f8ca /templates/main.js
parenteb245c2970062620f349024922f8c48379ffea88 (diff)
support for slugified links; may introduce a few bugs
Diffstat (limited to 'templates/main.js')
-rw-r--r--templates/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/main.js b/templates/main.js
index ead852fe..e948fd82 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -146,6 +146,7 @@ function changeStyle(styleName, link) {
{% endraw %}
{% if config.stylesheets_board %}
{# This is such an unacceptable mess. There needs to be an easier way. #}
+ {# Needs fix for slugify #}
var matches = document.URL.match(/\/(\w+)\/($|{{ config.dir.res|replace({'/': '\\/'}) }}{{ config.file_page|replace({'%d': '\\d+', '.': '\\.'}) }}|{{ config.file_index|replace({'.': '\\.'}) }}|{{ config.file_page|replace({'%d': '\\d+', '.': '\\.'}) }})/);
{% raw %}
if (matches) {