1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Don't scroll to section

This commit is contained in:
Hillel Coren 2018-01-16 12:55:01 +02:00
parent 86be4f9819
commit cb8871d3f2

View File

@ -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>