aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-30 11:17:22 +0200
committerMax Kostikov <max@kostikov.co>2019-04-30 11:17:22 +0200
commit5066945adc2ac9654d773ddf5406674aa4075ae0 (patch)
tree45e03a89688cd8687ab6391db7d8709df0c1512b /view/js
parente945c12856404b786c3ad8e0684327c31080966b (diff)
downloadvolse-hubzilla-5066945adc2ac9654d773ddf5406674aa4075ae0.tar.gz
volse-hubzilla-5066945adc2ac9654d773ddf5406674aa4075ae0.tar.bz2
volse-hubzilla-5066945adc2ac9654d773ddf5406674aa4075ae0.zip
Fix add multiple icons on 'Submit' button when reply on comment
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js2
1 files changed, 1 insertions, 1 deletions
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('<i class="fa fa-reply" ></i> ' + btn);
form.find('textarea').val("@{" + owner + "}\n");
$('#comment-edit-text-' + parent.toString()).focus();