]> git.mxchange.org Git - friendica.git/blobdiff - js/autocomplete.js
Merge remote-tracking branch 'upstream/develop' into 1704-mastodon
[friendica.git] / js / autocomplete.js
index 8702abbcf92e3b23b3522a2655a827eb6bd2d3bd..3ed9fa30f9f2b23ae3007dda2348b0c9bb963abd 100644 (file)
@@ -166,7 +166,7 @@ function listNewLineAutocomplete(id) {
        if (word != null) {
                var textBefore = text.value.substring(0, caretPos);
                var textAfter  = text.value.substring(caretPos, text.length);
-               $('#' + id).val(textBefore + '\r\n[*] ' + textAfter);
+               $('#' + id).val(textBefore + '\r\n[*] ' + textAfter).trigger('change');
                setCaretPosition(text, caretPos + 5);
                return true;
        }