* 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:
parent
ff9c2fee8c
commit
bec39af49c
@ -281,3 +281,13 @@ background-color: #e8f3e1;
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
/* Or any other style you want to reset */
|
/* Or any other style you want to reset */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#busy-indicator {
|
||||||
|
display: none;
|
||||||
|
margin-top: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
.busy {
|
||||||
|
cursor: wait; /* Change the cursor to a 'wait' cursor */
|
||||||
|
}
|
@ -29,3 +29,15 @@ $(document).ready(function() {
|
|||||||
$(this).attr('src', iconSrc);
|
$(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');
|
||||||
|
});
|
||||||
|
});
|
@ -33,18 +33,6 @@
|
|||||||
<link rel="stylesheet" href="/smanager/css/flag-icon.min.css">
|
<link rel="stylesheet" href="/smanager/css/flag-icon.min.css">
|
||||||
%= stylesheet '/css/sme-jquery-overrides.css'
|
%= stylesheet '/css/sme-jquery-overrides.css'
|
||||||
|
|
||||||
<style>
|
|
||||||
#busy-indicator {
|
|
||||||
display: none;
|
|
||||||
margin-top: 10px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
.busy {
|
|
||||||
cursor: wait; /* Change the cursor to a 'wait' cursor */
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
%# panel specific css file
|
%# panel specific css file
|
||||||
% my $controller = stash('controller');
|
% my $controller = stash('controller');
|
||||||
% if ($controller) {
|
% if ($controller) {
|
||||||
@ -112,19 +100,6 @@
|
|||||||
|
|
||||||
%= javascript '/js/sme-dataTable-setup.js'
|
%= javascript '/js/sme-dataTable-setup.js'
|
||||||
|
|
||||||
<script>
|
|
||||||
$(document).ready(function() {
|
|
||||||
// Handle form submission for any form
|
|
||||||
$('form').on('submit', function(event) {
|
|
||||||
// Disable the submit button
|
|
||||||
$(this).find('button[type="submit"], input[type="submit"]').prop('disabled', true);
|
|
||||||
// Show the busy indicator
|
|
||||||
// Change the cursor to "wait"
|
|
||||||
$('body').addClass('busy');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
%# Specific panel js code
|
%# Specific panel js code
|
||||||
% $controller = stash('controller');
|
% $controller = stash('controller');
|
||||||
% if ($controller) {
|
% if ($controller) {
|
||||||
|
@ -2,7 +2,7 @@ Summary: Sme server navigation module : 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 100
|
%define release 101
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -146,6 +146,9 @@ true
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 02 2025 Brian Read <brianr@koozali.org> 11.0.0-101.sme
|
||||||
|
- Fix busy cursor, csp intervened. [SME: 13064]
|
||||||
|
|
||||||
* Tue Jul 01 2025 Brian Read <brianr@koozali.org> 11.0.0-100.sme
|
* Tue Jul 01 2025 Brian Read <brianr@koozali.org> 11.0.0-100.sme
|
||||||
- Add code in top template default.html.ep to incorporate any panel specific js and css [SME: 13062]
|
- Add code in top template default.html.ep to incorporate any panel specific js and css [SME: 13062]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user