* 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]
This commit is contained in:
2025-09-25 15:42:28 +01:00
parent 022b85bd69
commit 9c9ab91869
2 changed files with 26 additions and 10 deletions

View File

@@ -30,14 +30,27 @@ $(document).ready(function() {
}); });
}); });
// and busy cursor
$(document).ready(function() { $(document).ready(function() {
// Handle form submission for any form $('form').on('submit', function(event) {
$('form').on('submit', function(event) { // Change submit buttons to look disabled and update their labels without disabling
// Disable all submit buttons and update their labels $(this).find('button[type="submit"]').each(function() {
$(this).find('button[type="submit"]').prop('disabled', true).text('Please wait...'); $(this).text('Please wait...').addClass('visually-disabled').css({
$(this).find('input[type="submit"]').prop('disabled', true).val('Please wait...'); 'pointer-events': 'none',
// Add busy cursor 'opacity': '0.6',
$('body').addClass('busy'); '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 %define name smeserver-manager
Name: %{name} Name: %{name}
%define version 11.0.0 %define version 11.0.0
%define release 118 %define release 119
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
@@ -147,6 +147,9 @@ true
%defattr(-,root,root) %defattr(-,root,root)
%changelog %changelog
* 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 * Thu Sep 25 2025 Brian Read <brianr@koozali.org> 11.0.0-118.sme
- Remove inline style for legacy panel [SME: 13177] - Remove inline style for legacy panel [SME: 13177]