#5783 closed defect (bug) (fixed)
In Message compose screen the "send to" autocomplete fails
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Messages | Keywords: | has-patch commit |
Cc: |
Description
Hi since r8559 the deprecated autocomplete scripts don't load. As a result it's not possible to choose the people we want to send a private message to.
I found it a little weird to use deprecated script in the message component, but i guess it will benefit from #3278 improvements.
So in the meantime, i'm suggesting the attached patch.
Attachments (1)
Change History (8)
#2
@
11 years ago
- Owner set to imath
- Resolution set to fixed
- Status changed from new to closed
In 8709:
#4
@
11 years ago
I've tried this patch, but still can't get autocomplete to work. Not getting any javascript errors in the console (although I was getting one until I uploaded the latest version of jquery.bgiframe.js and jquery.bgiframe.min.js - 3.0.1). I've tried deactivating plugins, but no joy. Could anyone give me some pointers on how to go about debugging this one?
#5
@
11 years ago
I've tried this patch, but still can't get autocomplete to work.
If you have the friends component enabled, you can only get autocomplete suggestions for friends.
If you want to get autocomplete suggestions for everyone regardless of friends, try adding the following to /wp-content/plugins/bp-custom.php:
define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );
I decided to soft-deprecate those old autocomplete scripts recently as eventually I want to switch those over to using At.js somehow (which will probably involve UI adaptions). The AJAX lookup behind this part of the Messages component has already been switched over to use the new Suggestions API endpoint, rather than its own bespoke AJAX handler.
Moving the JS around a bit is also some groundwork that will help us significantly overhaul the quality of BuddyPress' JS in 2.2. There is a ticket somewhere I shall add my suggestions to, soon, about how we can do JS better in future release.
Patch works fine