scroll Ui to top of page on page loads, closes #977

pull/990/head
Justin Richer 2015-12-18 15:41:01 -05:00
parent aa878cc3cf
commit d338352cc8
1 changed files with 5 additions and 0 deletions

View File

@ -1002,6 +1002,11 @@ $(function () {
$.ajaxSetup({cache:false});
app = new AppRouter();
app.on('route', function(name, args) {
// scroll to top of page on new route selection
$("html, body").animate({ scrollTop: 0 }, "slow");
});
// grab all hashed URLs and send them through the app router instead
$(document).on('click', 'a[href^="manage/#"]', function(event) {
event.preventDefault();