mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-21 21:10:00 +01:00
Reset scroll position on location change.
This commit is contained in:
parent
9da65f9fc7
commit
d032babf1a
@ -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
|
||||
});
|
||||
});
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user