Add curosr change when save or submit pressed
This commit is contained in:
parent
df6d21dbc9
commit
fe62bd3e39
@ -36,6 +36,19 @@
|
|||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/css/flag-icon.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.5.0/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>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -95,5 +108,21 @@
|
|||||||
|
|
||||||
%= 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
|
||||||
|
// $('#busy-indicator').show();
|
||||||
|
|
||||||
|
// Change the cursor to "wait"
|
||||||
|
$('body').addClass('busy');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -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 24
|
%define release 25
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -113,6 +113,9 @@ true
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 02 2024 Brian Read <brianr@koozali.org> 11.0.0-25.sme
|
||||||
|
- Add in cursor change when save/submit pressed to indicate processing [SME: 12748]
|
||||||
|
|
||||||
* Wed Oct 02 2024 Brian Read <brianr@koozali.org> 11.0.0-24.sme
|
* Wed Oct 02 2024 Brian Read <brianr@koozali.org> 11.0.0-24.sme
|
||||||
- Messed up build - finger trouble [SME: 12753]
|
- Messed up build - finger trouble [SME: 12753]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user