|
@@ -125,6 +125,17 @@ $(document).ready(function() {
|
|
|
}
|
|
|
});
|
|
|
})();
|
|
|
+
|
|
|
+ // responsive tabs, scroll to opened tab
|
|
|
+ $(document).on("shown.bs.collapse shown.bs.tab", function (e) {
|
|
|
+ var target = $(e.target);
|
|
|
+ if($(window).width() <= 767) {
|
|
|
+ var offset = target.offset().top - 60;
|
|
|
+ $("html, body").stop().animate({
|
|
|
+ scrollTop: offset
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
// IE fix to hide scrollbars when table body is empty
|
|
|
$('tbody').filter(function (index) {
|