Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: ihkawiss on August 19, 2013, 11:31:52 AM

Title: Compose view inline adressbok javascript events
Post by: ihkawiss on August 19, 2013, 11:31:52 AM
Hello everybody

In the compose view, there is the inline contact book available. When a contact group is selected, the command "list-adresses" is fired which loades the specific contacts. I try to manipulate this list, so I tried to attach an eventlistener like "afterlist-adresses" - but that is no option because dom isn't updated at this time, so I can't manipulate the list. I tried to use the "listupdate" or "insertrow" event, but it doesn't fire one of them.

Now, is there an event wich can be used to manipulate the loaded adress-list ?

I saw that this.add_contact_row is fired, but when I attach an eventlistener to this function it doesn't seem to work.

Best regards
ihkawiss
Title: Re: Compose view inline adressbok javascript events
Post by: SKaero on August 19, 2013, 12:11:00 PM
Try the before* and after* hooks http://trac.roundcube.net/wiki/Plugin_Events
Title: Re: Compose view inline adressbok javascript events
Post by: ihkawiss on August 20, 2013, 04:08:02 AM
As I wrote, I've already been trying the before* and after* hooks.

I tried afterlist-adresses, but when this event is fired, the list isn't available in the DOM yet.

And the other hooks, like listupdate and insertrow are not fired.

ihkawiss
Title: Re: Compose view inline adressbok javascript events
Post by: ihkawiss on August 26, 2013, 06:11:02 AM
*Push*

Does anybody have an idea ?

ihkawiss