Commit 08d18c8e authored by Robert Lyon's avatar Robert Lyon

Bug 1837953: Stop slideshow anchor links scrolling

Now that we scroll in page anchor links via js

Change-Id: Ic4c0eec2fe75ff6c2e66a081c456043888fa502f
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 4148ee3b
...@@ -1223,7 +1223,8 @@ $(function() { ...@@ -1223,7 +1223,8 @@ $(function() {
*/ */
jQuery(function($) { jQuery(function($) {
$(document).on('click', 'a', function(event) { $(document).on('click', 'a', function(event) {
if ($(this.hash).length && location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '')) { if ($(this.hash).length && location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') &&
!$(this).is('[class^="carousel"]')) {
event.preventDefault(); event.preventDefault();
var target = $(this.hash); var target = $(this.hash);
var headerheight = 0; var headerheight = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment