mirror of
https://github.com/friendica/friendica
synced 2025-04-23 07:50:12 +00:00
Restore auto-complete feature in comments forms
- New catch-all feature supports network/display pages, infinite scroll and live updated conversations
This commit is contained in:
parent
97bbe3ae96
commit
46ed610d04
2 changed files with 13 additions and 13 deletions
|
@ -175,6 +175,17 @@ $(function() {
|
|||
$(textarea).trigger('change');
|
||||
});
|
||||
|
||||
$(".comment-edit-wrapper textarea, .wall-item-comment-wrapper textarea")
|
||||
.editor_autocomplete(baseurl + '/search/acl')
|
||||
.bbco_autocomplete('bbcode');
|
||||
|
||||
// Ensures asynchronously-added comment forms recognize mentions, tags and BBCodes as well
|
||||
document.addEventListener("postprocess_liveupdate", function() {
|
||||
$(".comment-edit-wrapper textarea, .wall-item-comment-wrapper textarea")
|
||||
.editor_autocomplete(baseurl + '/search/acl')
|
||||
.bbco_autocomplete('bbcode');
|
||||
});
|
||||
|
||||
/* popup menus */
|
||||
function close_last_popup_menu() {
|
||||
if (last_popup_menu) {
|
||||
|
@ -568,10 +579,6 @@ function updateConvItems(data) {
|
|||
commentBusy = false;
|
||||
$('body').css('cursor', 'auto');
|
||||
}
|
||||
/* autocomplete @nicknames */
|
||||
$(".comment-edit-form textarea").editor_autocomplete(baseurl + '/search/acl');
|
||||
/* autocomplete bbcode */
|
||||
$(".comment-edit-form textarea").bbco_autocomplete('bbcode');
|
||||
}
|
||||
|
||||
function liveUpdate(src) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue