Reset scroll position on location change.

This commit is contained in:
Lars Jung 2014-05-30 01:06:25 +02:00
parent 9da65f9fc7
commit d032babf1a
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@ modulejs.define('core/settings', ['config', '_'], function (config, _) {
return _.extend({}, config.options, {
appHref: config.setup.APP_URL,
rootHref: config.setup.ROOT_URL
rootHref: config.setup.ROOT_URL,
currentHref: config.setup.CURRENT_URL
});
});

View File

@ -112,6 +112,8 @@ modulejs.define('view/items', ['_', '$', 'core/settings', 'core/resource', 'core
} else {
$empty.hide();
}
$('html,body').scrollLeft(0).scrollTop(0);
},
onLocationRefreshed = function (item, added, removed) {