MediaWiki:SupportPage.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
fix to not hide if expanded |
set fragment identifier when clicking a ToC link - phab:T205107 |
||
Line 39: | Line 39: | ||
scrollTop: offsetTop - scrollOffset |
scrollTop: offsetTop - scrollOffset |
||
}, scrollDuration); |
}, scrollDuration); |
||
window.location.hash = event.data.anchor.attr('id'); |
|||
event.preventDefault(); |
event.preventDefault(); |
||
}; |
}; |