Roundcube Community Forum

 

Compose view inline adressbok javascript events

Started by ihkawiss, August 19, 2013, 11:31:52 AM

Previous topic - Next topic

ihkawiss

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


ihkawiss

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

ihkawiss