diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index 00afc38443cc..c5e497982342 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -493,9 +493,16 @@ thead th { setTimeout(function() { $('.nav-tabs a[href="' + window.location.hash + '"]').tab('show'); }, 1); - } + $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { + var target = $(e.target).attr("href") // activated tab + console.log(target); + var scrollmem = $('html,body').scrollTop(); + window.location.hash = target; + $('html,body').scrollTop(scrollmem); + }); + });