1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Fix no board_name on catalog causing weird bugs with filter/other problems

This commit is contained in:
8chan 2015-04-21 07:11:00 -07:00
parent 2a45e5f684
commit a4312e7d16
4 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,6 @@
var inMod = {% if mod %}true{% else %}false{% endif %};
var modRoot="{{ config.root }}"+(inMod ? "mod.php?/" : "");
var max_images={{ config.max_images }};
var board_name="{{ board.uri }}";
{% raw %}
var styles = {
{% endraw %}

View File

@ -4,11 +4,12 @@
<meta charset="utf-8">
<script type="text/javascript">
{% if not no_post_form %}
var active_page = "index";
{% else %}
var active_page = "ukko";
{% endif %}
{% if not no_post_form %}
var active_page = "index";
{% else %}
var active_page = "ukko";
{% endif %}
var board_name="{{ board.uri }}";
</script>
{% include 'header.html' %}

View File

@ -5,6 +5,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<script type='text/javascript'>
active_page = "catalog";
board_name = "{{ board }}";
</script>
{% include 'header.html' %}
<title>{{ board }} - Catalog</title>

View File

@ -4,7 +4,8 @@
<meta charset="utf-8">
<script type="text/javascript">
var active_page = "thread";
var active_page = "thread";
var board_name="{{ board.uri }}";
</script>
{% include 'header.html' %}