JS Api: added an active_page variable to make it easier to denote the context from javascript
This commit is contained in:
parent
08494f2b2f
commit
3bcf88e842
@ -3,11 +3,16 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{% if config.quick_reply %}
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
{% if config.quick_reply %}
|
||||
var new_reply_string = "{{ config.button_reply }}";
|
||||
</script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if not no_post_form %}
|
||||
var active_page = "index";
|
||||
{% else %}
|
||||
var active_page = "ukko";
|
||||
{% endif %}
|
||||
</script>
|
||||
|
||||
{% include 'header.html' %}
|
||||
<title>{{ board.url }} - {{ board.name }}</title>
|
||||
|
@ -2,6 +2,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<script type="text/javascript">
|
||||
var active_page = "thread";
|
||||
</script>
|
||||
|
||||
{% include 'header.html' %}
|
||||
<title>{{ board.url }} - {{ board.name }}</title>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user