diff --git a/root/usr/share/smanager/themes/AdminLTE/public/koozali/css/adminlte.koozali.css b/root/usr/share/smanager/themes/AdminLTE/public/koozali/css/adminlte.koozali.css index d06388c..883b675 100644 --- a/root/usr/share/smanager/themes/AdminLTE/public/koozali/css/adminlte.koozali.css +++ b/root/usr/share/smanager/themes/AdminLTE/public/koozali/css/adminlte.koozali.css @@ -118,3 +118,14 @@ html { .nutTable tr td:nth-child(1){ width:30%; } + + +#busy-indicator { + display: none; + margin-top: 10px; + font-weight: bold; + color: red; +} +.busy { + cursor: wait; /* Change the cursor to a 'wait' cursor */ +} diff --git a/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js b/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js index 7ec14b0..dc3cf5d 100644 --- a/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js +++ b/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js @@ -21,6 +21,18 @@ $(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'); + }); +}); + $(document).ready(function () { // Get the fields diff --git a/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep b/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep index e9a0fbb..64b76ed 100644 --- a/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep +++ b/root/usr/share/smanager/themes/AdminLTE/templates/reboot.html.ep @@ -2,15 +2,17 @@ % content_for 'module' => begin +<%= dumper $c->current_route %> +
- <%= dumper $c->current_route %> + <%= dumper $c->current_route %>% } -