[RCD] Using the address book quick search JS from plugins
christopher at gms.lu
Tue Feb 19 14:02:44 CET 2013
I am looking at adding address book 'quick search'/auto-complete
functionality, amongst other enhancements, to the advanced_search plugin
for the email relevant fields (To, From, etc). This will allow for quick
and easy entry of email addresses that are in the address book.
Looking at the functionality in the compose, simply adding this JS
snippit to the input seems to work:
The problem being that this wraps the email address with "<>", prepends
the display name and appends ", " to the data. Trying to just use this
and filtering the email our with a regex in the backend is problematic
due to the "<email>" being removed via the XSS HTML tag filtering
protection. Disabling this is also not desirable.
What I would like is to have the same type of functionality but choosing
only to place the email address in the field. I have done a little
digging through the JS code but did not quickly find something that
matched my requirements.
Can someone point me in the right direction or do I need to try to trace
what is happening all through app.js.src. I would like to reuse as much
of the core code as possible.
Global Media Systems SA
212, route de Thionville - L-2610 Howald
tel. +352 48 28 11 - fax +352 48 28 110
More information about the dev