From 45f68cbf398a7043120edee808632f940f732135 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Sat, 26 Jan 2019 18:12:15 +0100 Subject: [PATCH] "Open the tab defined in the URL" compatibility - Better compatibility by not using ``` - If page is scrollable, prevent jumping down past the tabs --- bl-kernel/admin/views/content.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index 58642985..3f544769 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -283,11 +283,9 @@ $(document).ready(function() { form.hide().appendTo("body").submit(); }); + + // Open the tab defined in the URL + $('a[href="'+ window.location.hash +'"]').tab('show'); + window.scrollTo(0); }); - - \ No newline at end of file