diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php
index 936bf828a..761939b44 100644
--- a/views/bootstrap/class.Settings.php
+++ b/views/bootstrap/class.Settings.php
@@ -230,6 +230,17 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
header('Content-Type: application/javascript; charset=UTF-8');
?>
+function scrollToTargetAdjusted(target){
+ var element = document.getElementById(target);
+ var headerOffset = 60;
+ var elementPosition = element.getBoundingClientRect().top;
+ var offsetPosition = elementPosition + window.pageYOffset - headerOffset;
+
+ window.scrollTo({
+ top: offsetPosition,
+ behavior: "smooth"
+ });
+}
$(document).ready( function() {
$('#settingstab li a').click(function(event) {
$('#currenttab').val($(event.currentTarget).data('target').substring(1));
@@ -256,6 +267,11 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
}
});
});
+
+ $('a.scrollto').click(function(event) {
+console.log($(event.currentTarget).data('target').substring(1));
+ scrollToTargetAdjusted($(event.currentTarget).data('target').substring(1));
+ });
});
callHook('getFullSearchEngine')) && is_array($kkk))
-- SETTINGS - ADVANCED - DISPLAY
-->
getExtensionConfiguration() as $extname=>$extconf) {
+ echo ''.$extconf['title']." ● ";
+ }
foreach($extmgr->getExtensionConfiguration() as $extname=>$extconf) {
if($this->hasHook('processConfig'))
$extconf = $this->callHook('processConfig', $extname, $extconf);
if($this->isVisible($extname.'|')) {
if($extconf['config']) {
- $this->showRawConfigHeadline("".'_extensions[$extname]["__disable__"] ? '1' : '').'" />_extensions[$extname]["__disable__"] ? ' disabled' : ' enabled').'"> '.$extconf['title'].'');
+ $this->showRawConfigHeadline("".'_extensions[$extname]["__disable__"] ? '1' : '').'" />_extensions[$extname]["__disable__"] ? ' disabled' : ' enabled').'"> '.$extconf['title'].'');
foreach($extconf['config'] as $confkey=>$conf) {
ob_start();
if($this->isVisible($extname.'|'.$confkey)) {