Browse Source

pull/5134 requested changes

pull/5134/head
Yunus Emre Kalkan 6 years ago
parent
commit
d59dd4a288
  1. 8
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/default.js

8
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/default.js

@ -136,11 +136,15 @@
}
function focusOnHash($container) {
if (location.hash === ''){
if (!location.hash.toLowerCase().startsWith('#cms-comment')){
return;
}
$('html, body').animate({ scrollTop: $(location.hash).offset().top + $(this).height() / 2 }, 'slow');
$('html, body').animate(
{
scrollTop: $(location.hash).offset().top + $(this).height() / 2
},
'slow');
}
function init() {

Loading…
Cancel
Save