mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 23:36:43 +02:00
Fix content scroll.
This commit is contained in:
@@ -70,9 +70,6 @@ modulejs.define('view/content', ['_', '$', 'core/event', 'core/format', 'core/lo
|
|||||||
}
|
}
|
||||||
$iconImg.attr('src', item.icon).attr('alt', item.type);
|
$iconImg.attr('src', item.icon).attr('alt', item.type);
|
||||||
|
|
||||||
if (item.$view) {
|
|
||||||
item.$view.replaceWith($html);
|
|
||||||
}
|
|
||||||
item.$view = $html;
|
item.$view = $html;
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
@@ -111,7 +108,7 @@ modulejs.define('view/content', ['_', '$', 'core/event', 'core/format', 'core/lo
|
|||||||
$empty.hide();
|
$empty.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
$('html,body').scrollLeft(0).scrollTop(0);
|
$content.scrollLeft(0).scrollTop(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLocationRefreshed(item, added, removed) {
|
function onLocationRefreshed(item, added, removed) {
|
||||||
|
Reference in New Issue
Block a user