* Wed Jul 02 2025 Brian Read <brianr@koozali.org> 11.0.0-101.sme

- Fix busy cursor, csp intervened. [SME: 13064]
This commit is contained in:
2025-07-02 14:10:06 +01:00
parent ff9c2fee8c
commit bec39af49c
4 changed files with 27 additions and 27 deletions

View File

@@ -28,4 +28,16 @@ $(document).ready(function() {
var iconSrc = inputType === 'password' ? 'images/visible.png' : 'images/visible-slash.png';
$(this).attr('src', iconSrc);
});
});
// 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');
});
});