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

Breaking standard Jquery functionality #6

Open
Faaiez opened this issue Jun 20, 2014 · 0 comments
Open

Breaking standard Jquery functionality #6

Faaiez opened this issue Jun 20, 2014 · 0 comments

Comments

@Faaiez
Copy link

Faaiez commented Jun 20, 2014

Hi

My main Index page now looks as follows:

The Quran

The End
<script type="text/javascript"> app.initialize(); $('.scrollable').pullToRefresh({ callback: function() { var def = $.Deferred(); debugger; if (document.activeElement.id==='surapage') { redownloadSura(); }; setTimeout(function() { def.resolve(); }, 3000); return def.promise(); } }); </script>

The app has an Index with a list of chapters (114). When selecting a chapter it takes you to the chapter page. Before adding the scroll-to-refresh functionality the 'back' button used to go back to the index page exactly to the place of the item selected.
After adding the two div's to enable the pull-to-refresh it keeps go to the top of the index page.
Any ideas why this would be?

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

1 participant