From 3de1d3113b038fb022cd06a9fd78148ac6b3271c Mon Sep 17 00:00:00 2001 From: Guillaume Date: Sat, 26 Jan 2019 18:13:36 +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 | 2 +- bl-kernel/admin/views/settings.php | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index 3f544769..1587d933 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -288,4 +288,4 @@ $(document).ready(function() { $('a[href="'+ window.location.hash +'"]').tab('show'); window.scrollTo(0); }); - + \ No newline at end of file diff --git a/bl-kernel/admin/views/settings.php b/bl-kernel/admin/views/settings.php index ccf40219..9f8f96f7 100644 --- a/bl-kernel/admin/views/settings.php +++ b/bl-kernel/admin/views/settings.php @@ -345,6 +345,9 @@ } }); + // Open the tab defined in the URL + $('a[href="'+ window.location.hash +'"]').tab('show'); + window.scrollTo(0); }); @@ -536,10 +539,4 @@ - - - + \ No newline at end of file