Handle multiple pagination with pagination links

In my use case, I have put a full pagination on each frame. So if I have 3 frames and a pagination with 3 links on each of them, there is a total of 9 links to handle. The events are correctly bound on all links, but the CSS class "current" is was put only on the first frame.

I don't think this patch will break other use case of pagination.