diff options
author | Max Kostikov <max@kostikov.co> | 2019-04-30 11:17:22 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-04-30 11:17:22 +0200 |
commit | 5066945adc2ac9654d773ddf5406674aa4075ae0 (patch) | |
tree | 45e03a89688cd8687ab6391db7d8709df0c1512b /view/js/main.js | |
parent | e945c12856404b786c3ad8e0684327c31080966b (diff) | |
download | volse-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/main.js')
-rw-r--r-- | view/js/main.js | 2 |
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(); |