diff options
| -rw-r--r-- | js/quick-reply.js | 2 | ||||
| -rw-r--r-- | templates/index.html | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/js/quick-reply.js b/js/quick-reply.js index dc48a743..bc36ca48 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -17,7 +17,7 @@ $(document).ready(function(){ return; // not index txt_new_topic = $('form[name=post] input[type=submit]').val(); - txt_new_reply = txt_new_topic == 'Submit' ? txt_new_topic : 'New Reply'; + txt_new_reply = txt_new_topic == 'Submit' ? txt_new_topic : new_reply_string; undo_quick_reply = function() { $('div.banner').remove(); diff --git a/templates/index.html b/templates/index.html index 059abc5e..9dec93e0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,8 +1,15 @@ <!doctype html>
<html>
<head>
- {% include 'header.html' %}
<meta charset="utf-8">
+
+ {% if config.quick_reply %}
+ <script type="text/javascript">
+ var new_reply_string = "{{ config.button_reply }}";
+ </script>
+ {% endif %}
+
+ {% include 'header.html' %}
<title>{{ board.url }} - {{ board.name }}</title>
</head>
<body>
|
