1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

Fixes #59 by making quick-reply.js agnostic to the value of $config['button_reply'].

This commit is contained in:
lanc33 2013-05-29 19:16:37 -03:00
parent b9140f3c07
commit 0e490407e1
2 changed files with 6 additions and 1 deletions

View File

@ -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();

View File

@ -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 %}