Browse Source

JS Api: added an active_page variable to make it easier to denote the context from javascript

pull/40/head
czaks 11 years ago
parent
commit
3bcf88e842
  1. 13
      templates/index.html
  2. 5
      templates/thread.html

13
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>

5
templates/thread.html

@ -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…
Cancel
Save