aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/messages_widget.tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-09 12:37:08 +0000
committerMario <mario@mariovavti.com>2023-02-09 12:37:08 +0000
commitc945698eb4694051ff2c5f12156f27653a69cae1 (patch)
tree11450929b68a662f27aeb70c549b8809d8335174 /view/tpl/messages_widget.tpl
parent5f89bd75a4f1b2b5940daf77053ea5774003c5e5 (diff)
downloadvolse-hubzilla-c945698eb4694051ff2c5f12156f27653a69cae1.tar.gz
volse-hubzilla-c945698eb4694051ff2c5f12156f27653a69cae1.tar.bz2
volse-hubzilla-c945698eb4694051ff2c5f12156f27653a69cae1.zip
work around wierd textcomplete behaviour
Diffstat (limited to 'view/tpl/messages_widget.tpl')
-rw-r--r--view/tpl/messages_widget.tpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl
index f71d8a223..ab4a6e9d5 100644
--- a/view/tpl/messages_widget.tpl
+++ b/view/tpl/messages_widget.tpl
@@ -86,6 +86,11 @@
}
$("#messages-author").name_autocomplete(baseurl + '/acl', 'a', false, function(data) {
+ // a workaround to not re-trigger autocomplete after initial click
+ $("#messages-author").val('').attr('placeholder', data.name);
+ $("#messages-author").blur();
+ $('#textcomplete-dropdown').hide();
+
$('#messages-container .message').remove();
$('#messages-author-container').addClass('active sticky-top');
$('#messages-author-input-clear').removeClass('d-none');
@@ -98,6 +103,8 @@
$(document).on('click', '#messages-author-input-clear', function() {
$('#messages-author').val('');
+ $("#messages-author").attr('placeholder', '{{$strings.filter}}');
+
$('#messages-author-container').removeClass('active sticky-top');
$('#messages-author-input-clear').addClass('d-none');
$('#messages-container .message').remove();