mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 14:35:18 -04:00
Fix content scroll.
This commit is contained in:
parent
7704a00d7b
commit
0faf399abd
1 changed files with 1 additions and 4 deletions
|
@ -70,9 +70,6 @@ modulejs.define('view/content', ['_', '$', 'core/event', 'core/format', 'core/lo
|
|||
}
|
||||
$iconImg.attr('src', item.icon).attr('alt', item.type);
|
||||
|
||||
if (item.$view) {
|
||||
item.$view.replaceWith($html);
|
||||
}
|
||||
item.$view = $html;
|
||||
|
||||
return $html;
|
||||
|
@ -111,7 +108,7 @@ modulejs.define('view/content', ['_', '$', 'core/event', 'core/format', 'core/lo
|
|||
$empty.hide();
|
||||
}
|
||||
|
||||
$('html,body').scrollLeft(0).scrollTop(0);
|
||||
$content.scrollLeft(0).scrollTop(0);
|
||||
}
|
||||
|
||||
function onLocationRefreshed(item, added, removed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue