Views not displaying correct information or custom js after going back to view.
I recently started using jQM and have been loving in soon as I got the hang of it.
I do have a a couple problems though.
1. I have a page that requires a login. Its written in django like such:
- {% if user.is_authenticated %}
- <a href="/review/{{ wine.id }}" data-role="button" data-transition="flip">Review this wine!</a>
- {% else %}
- <a href="/login/" data-role="button" data-direction="reverse" data-transition="flip">Login to review wine!</a>
- {% endif %}
After I login and come back, the page still says "Login to review this wine!" its doesn't recognize the logged in state. It seems to need a refresh, but I only saw that for list views. Should I use $mobile.changePage() ?
2. After I load a page a second time or had a failure, custom js on the page doesn't load correctly or at all. This seems like a related problem.
Any help on these issues would be greatly appreciated.