diff options
| author | Michael <savetheinternet@tinyboard.org> | 2013-06-13 11:11:08 -0700 |
|---|---|---|
| committer | Michael <savetheinternet@tinyboard.org> | 2013-06-13 11:11:08 -0700 |
| commit | a2c215d5d0f606dc8a7af2d5e2c695d2bfda0de2 (patch) | |
| tree | a933fdcd2a5ed93c229ee7ca4ed023a36c712a0d | |
| parent | b9140f3c079c925092dd7a6d53ed05226888756a (diff) | |
| parent | 0e490407e18679de2458647b891edaeb664a2f8f (diff) | |
Merge pull request #110 from lanc33/master
Fixes #59
| -rw-r--r-- | js/quick-reply.js | 2 | ||||
| -rw-r--r-- | templates/index.html | 5 |
2 files changed, 6 insertions, 1 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 761227ed..112756d1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,6 +10,11 @@ {% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %}
{% if not nojavascript %}
<script type="text/javascript" src="{{ config.url_javascript }}"></script>
+ {% if config.quick_reply %}
+ <script type="text/javascript">
+ var new_reply_string = "{{ config.button_reply }}";
+ </script>
+ {% endif %}
{% if not config.additional_javascript_compile %}
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
{% endif %}
|
