mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Don't scroll to section
This commit is contained in:
parent
74706ecfd1
commit
fd29b623ca
@ -199,18 +199,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// set timeout onDomReady
|
|
||||||
setTimeout(delayedFragmentTargetOffset, 500);
|
|
||||||
|
|
||||||
// add scroll offset to fragment target (if there is one)
|
|
||||||
function delayedFragmentTargetOffset(){
|
|
||||||
var offset = $(':target').offset();
|
|
||||||
if (offset) {
|
|
||||||
var scrollto = offset.top - 180; // minus fixed header height
|
|
||||||
$('html, body').animate({scrollTop:scrollto}, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user