From 5066945adc2ac9654d773ddf5406674aa4075ae0 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 30 Apr 2019 11:17:22 +0200 Subject: Fix add multiple icons on 'Submit' button when reply on comment --- view/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/js/main.js b/view/js/main.js index 568f5bb4b..d6bdc8238 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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(' ' + btn); form.find('textarea').val("@{" + owner + "}\n"); $('#comment-edit-text-' + parent.toString()).focus(); -- cgit v1.2.3