mercredi 10 juin 2015

Execute JQuery code after view has changed

I'm using Foundation tooltips on the page with query-parameters - they control what elements are displayed, acts as filter basically.

When user change filter and new elements are displayed tooltip stops to work as it needs to be reattached to the new elements - $(document).foundation('tooltip', 'reflow'); so I wonder what is the correct way to execute this code after view is re-rendered.

For sure this must go to the view layer, but I can't find appropriate event http://ift.tt/1JJZRaY




Aucun commentaire:

Enregistrer un commentaire