Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Force thanks page on mobile to scroll to top. Bug 632163.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed Feb 8, 2011
1 parent 9e9e3c2 commit 261db02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions media/js/jquery.scrollto.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions media/js/release.js
Expand Up @@ -36,16 +36,15 @@
if (callback) callback();
};
if (!$('html').hasClass('mobile')) {
toElem.one('transitionend', transitionend());
toElem.one('transitionend', transitionend);
} else {
transitionend();
$.scrollTo(what);
}

setTimeout(function() {
fromElem.css({ left: fromEnd, right: -fromEnd });
toElem.css({ left: 0, right: 0 });

if ($('html').hasClass('mobile')) {
transitionend();
}
}, 100);

return this;
Expand Down
1 change: 1 addition & 0 deletions settings.py
Expand Up @@ -232,6 +232,7 @@ def __new__(self):
# Release versions feedback
'release': (
'js/jquery.min.js',
'js/jquery.scrollto.min.js',
'js/jquery.NobleCount.js',
'js/release.js',
),
Expand Down

0 comments on commit 261db02

Please sign in to comment.