Compare commits

..

3 Commits

Author SHA1 Message Date
de2f78a089 * Sat Sep 27 2025 Brian Read <brianr@koozali.org> 11.0.0-121.sme
- Sort out ftp public setting [SME: 13194]
2025-09-27 12:29:54 +01:00
b838d9252a * Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-120.sme
- Add CSS for multiple result buttons on panel  - used by wireguard[SME: 13185]
2025-09-25 18:45:22 +01:00
9c9ab91869 * Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-119.sme
- Change submit button disable/message as method as current method does not send name back as parameter [SME: 13184]
2025-09-25 15:42:28 +01:00
4 changed files with 51 additions and 13 deletions

View File

@@ -163,7 +163,7 @@ sub get_ftp_access {
my $status = get_prop('', 'ftp', 'status') || 'disabled';
return 'off' unless $status eq 'enabled';
my $access = get_prop('', 'ftp', 'access') || 'private';
return ($access eq 'public') ? 'normal' : 'private';
return ($access eq 'public') ? 'public' : 'private';
} ## end sub get_ftp_access
#sub get_pptp_sessions {
@@ -320,7 +320,7 @@ sub change_settings {
$rec->set_prop('status', 'disabled');
$rec->set_prop('access', 'private');
$rec->set_prop('LoginAccess', 'private');
} elsif ($rma_datas{ftpAccess} eq "normal") {
} elsif ($rma_datas{ftpAccess} eq "public") {
$rec->set_prop('status', 'enabled');
$rec->set_prop('access', 'public');
$rec->set_prop('LoginAccess', $rma_datas{ftpPasswordAccess});
@@ -438,4 +438,4 @@ sub remove_valid_from {
$db->get('httpd-admin')->set_prop('ValidFrom', $prop);
return 1;
} ## end sub remove_valid_from
1;
1;

View File

@@ -502,4 +502,20 @@ div.success, span.success {
div.roundcube #roundcube{
width:100%;
height:600px;
}
.center {
display: flex;
align-items: center;
width: 100%; /* adjust as needed */
}
.left-btn {
/* Left aligned */
}
.center-btn {
/* Center aligned */
margin-left: auto!important;
margin-right: auto;
}

View File

@@ -30,14 +30,27 @@ $(document).ready(function() {
});
});
// and busy cursor
$(document).ready(function() {
// Handle form submission for any form
$('form').on('submit', function(event) {
// Disable all submit buttons and update their labels
$(this).find('button[type="submit"]').prop('disabled', true).text('Please wait...');
$(this).find('input[type="submit"]').prop('disabled', true).val('Please wait...');
// Add busy cursor
$('body').addClass('busy');
});
$('form').on('submit', function(event) {
// Change submit buttons to look disabled and update their labels without disabling
$(this).find('button[type="submit"]').each(function() {
$(this).text('Please wait...').addClass('visually-disabled').css({
'pointer-events': 'none',
'opacity': '0.6',
'cursor': 'not-allowed'
});
});
$(this).find('input[type="submit"]').each(function() {
$(this).val('Please wait...').addClass('visually-disabled').css({
'pointer-events': 'none',
'opacity': '0.6',
'cursor': 'not-allowed'
});
});
// Add busy cursor to body
$('body').addClass('busy');
// Allow form to submit normally without disabling the buttons
});
});

View File

@@ -2,7 +2,7 @@ Summary: Sme Server Configuration : Manager 2
%define name smeserver-manager
Name: %{name}
%define version 11.0.0
%define release 118
%define release 121
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@@ -147,6 +147,15 @@ true
%defattr(-,root,root)
%changelog
* Sat Sep 27 2025 Brian Read <brianr@koozali.org> 11.0.0-121.sme
- Sort out ftp public setting [SME: 13194]
* Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-120.sme
- Add CSS for multiple result buttons on panel - used by wireguard[SME: 13185]
* Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-119.sme
- Change submit button disable/message as method as current method does not send name back as parameter [SME: 13184]
* Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-118.sme
- Remove inline style for legacy panel [SME: 13177]