From 9edcdb077cc0715c45c8ae0a015b56ca95213433 Mon Sep 17 00:00:00 2001 From: lanc33 Date: Wed, 29 May 2013 19:16:37 -0300 Subject: [PATCH] Fixes #59 by making quick-reply.js agnostic to the value of $config['button_reply']. --- js/quick-reply.js | 2 +- templates/index.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 != '' %}{% endif %} {% if not nojavascript %} + {% if config.quick_reply %} + + {% endif %} {% if not config.additional_javascript_compile %} {% for javascript in config.additional_javascript %}{% endfor %} {% endif %}