Fix add multiple icons on 'Submit' button when reply on comment

This commit is contained in:
Max Kostikov 2019-04-30 11:17:22 +02:00
parent e945c12856
commit 5066945adc

View File

@ -1146,7 +1146,7 @@ function dolike(ident, verb) {
function doreply(parent, ident, owner) {
form = $('#comment-edit-form-' + parent.toString());
form.find('input[name=parent]').val(ident);
var btn = form.find('button[type=submit]').html();
var btn = form.find('button[type=submit]').html().replace(/<[^>]*>/g, '').trim();
form.find('button[type=submit]').html('<i class="fa fa-reply" ></i> ' + btn);
form.find('textarea').val("@{" + owner + "}\n");
$('#comment-edit-text-' + parent.toString()).focus();