Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless pagination #28

Open
philippeluickx opened this issue Sep 22, 2014 · 2 comments
Open

Endless pagination #28

philippeluickx opened this issue Sep 22, 2014 · 2 comments

Comments

@philippeluickx
Copy link

Hey!
Thanks for a great package.

I would like to combine the use of django-favit with endless pagination http://django-endless-pagination.readthedocs.org/en/latest/twitter_pagination.html
The problem is that django-favit uses $(document).ready(function() {...
However, new html is being loaded in the DOM through django-endless-pagination.

Not sure on how to deal with this. Other plugins seem to sometimes have a "live" update... Could something like that be implemented? > frankban/django-endless-pagination#29

Thanks!

@matagus
Copy link
Member

matagus commented Sep 23, 2014

Hi Philippe,

thanks for opening this issue. I think it's a desirable feature for django-favit. While we think what is the best way to deal with it I think this new js file may show how to do it. jQuery's live() is deprecated since jquery 1.7 but you can use .on() the way I did above. Just be sure to replace .endless_container css class by whatever class you use for the favorite items container html tag.

@philippeluickx
Copy link
Author

Hei Matagus!

Thanks a lot for your answer. I tried it out, but did not get it to work. Same behaviour as before...
I am not a javascript wizard, but I do understand the change you made. Just not sure of why it is not working...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants