diff --git a/core/src/Controllers/SystemSettings.php b/core/src/Controllers/SystemSettings.php
index 016638f21f..420805fe11 100644
--- a/core/src/Controllers/SystemSettings.php
+++ b/core/src/Controllers/SystemSettings.php
@@ -327,6 +327,7 @@ private function callEvent(string $name)
protected function parameterActionButtons(): array
{
return [
+ 'select' => 1,
'save' => 1,
'cancel' => 1
];
diff --git a/manager/processors/save_settings.processor.php b/manager/processors/save_settings.processor.php
index b7f84e1fbc..6340a39f36 100755
--- a/manager/processors/save_settings.processor.php
+++ b/manager/processors/save_settings.processor.php
@@ -127,5 +127,11 @@
// empty cache
$modx->clearCache('full');
}
-$header = "Location: index.php?a=7&r=10";
+
+// redirect/stay options
+if ($data['stay'] != '') {
+ $header = "Location: index.php?a=17&stay=" . $data['stay'];
+} else {
+ $header = "Location: index.php?a=7&r=10";
+}
header($header);
diff --git a/manager/views/page/system_settings.blade.php b/manager/views/page/system_settings.blade.php
index 33fb8776d8..41424c56a0 100644
--- a/manager/views/page/system_settings.blade.php
+++ b/manager/views/page/system_settings.blade.php
@@ -2,18 +2,18 @@
@section('content')
@push('scripts.top')
@endpush
@@ -22,12 +22,8 @@
-
- {{ ManagerTheme::getLexicon('settings_title') }}
-
-
+ {{ ManagerTheme::getLexicon('settings_title') }}
@include('manager::partials.actionButtons', $actionButtons)
-
@if(!get_by_key(EvolutionCMS()->config, 'settings_version') || get_by_key(EvolutionCMS()->config, 'settings_version') !== EvolutionCMS()->getVersionData('version'))
{!! ManagerTheme::getLexicon('settings_after_install') !!}
@@ -35,7 +31,7 @@
@endif
@include('manager::page.system_settings.general')
@include('manager::page.system_settings.friendly_urls')
@@ -48,70 +44,67 @@
@push('scripts.bot')
+ (function($) {
+ $('input:radio').change(function() {
+ documentDirty = true;
+ });
+ $('#furlRowOn').change(function() {
+ $('.furlRow').fadeIn();
+ });
+ $('#furlRowOff').change(function() {
+ $('.furlRow').fadeOut();
+ });
+ $('#udPermsOn').change(function() {
+ $('.udPerms').slideDown();
+ });
+ $('#udPermsOff').change(function() {
+ $('.udPerms').slideUp();
+ });
+ $('#editorRowOn').change(function() {
+ $('.editorRow').slideDown();
+ });
+ $('#editorRowOff').change(function() {
+ $('.editorRow').slideUp();
+ });
+ $('#rbRowOn').change(function() {
+ $('.rbRow').fadeIn();
+ });
+ $('#rbRowOff').change(function() {
+ $('.rbRow').fadeOut();
+ });
+ $('#useSmtp').change(function() {
+ $('.smtpRow').fadeIn();
+ });
+ $('#useMail').change(function() {
+ $('.smtpRow').fadeOut();
+ });
+ $('#captchaOn').change(function() {
+ $('.captchaRow').fadeIn();
+ });
+ $('#captchaOff').change(function() {
+ $('.captchaRow').fadeOut();
+ });
+ })(jQuery);
-
@if(is_numeric(get_by_key($_GET, 'tab')))
diff --git a/manager/views/partials/actionButtons.blade.php b/manager/views/partials/actionButtons.blade.php
index 0a2334d302..5d98717e5f 100644
--- a/manager/views/partials/actionButtons.blade.php
+++ b/manager/views/partials/actionButtons.blade.php
@@ -1,5 +1,4 @@
-getConfig('global_tabs') && !isset($_SESSION['stay'])) {
$_REQUEST['stay'] = 2;
@@ -9,8 +8,7 @@
} elseif (isset($_SESSION['stay'])) {
$_REQUEST['stay'] = $_SESSION['stay'];
}
-$stay = isset($_REQUEST['stay']) ? $_REQUEST['stay'] : '';
-?>
+$stay = isset($_REQUEST['stay']) ? $_REQUEST['stay'] : ''; ?>
@if(!empty($select) && !empty($save))