diff options
| author | czaks <marcin@6irc.net> | 2013-06-24 08:23:09 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-06-24 08:23:09 -0400 |
| commit | 3bcf88e842b8616a52dec7744e19073248817812 (patch) | |
| tree | 6b133e43c15c720d85c4f3c7e5cfc447fef88d72 /templates/index.html | |
| parent | 08494f2b2f0d2defb2ed934481669603797a45f6 (diff) | |
JS Api: added an active_page variable to make it easier to denote the context from javascript
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/templates/index.html b/templates/index.html index 9dec93e0..82d3104e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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>
|
