#12288 fixed spinner in button link

This commit is contained in:
Daniel Cebrian 2023-10-24 14:53:34 +02:00
parent 638ba75894
commit f3fe59bfda
1 changed files with 15 additions and 4 deletions

View File

@ -593,9 +593,18 @@ $(document).ready(function(){
});
$('#button-update').on('click', function(){
$('.info_box_information').remove();
$('#content-netflow').remove();
$('#spinner').removeClass("invisible");
if ($('.info_box_information').length > 0) {
$('.info_box_information').remove();
}
if ($('#content-netflow').length > 0) {
$('#content-netflow').remove();
}
if ($('#spinner').length > 0) {
$('#spinner').removeClass("invisible");
}
if ($('.link-with-params').length > 0) {
$('.link-with-params').remove();
}
});
$('.link-with-params').on('submit', function(e){
@ -608,7 +617,9 @@ $(document).ready(function(){
}
if ($('#spinner').length > 0) {
$('#spinner').removeClass("invisible");
}
if ($('.link-with-params').length > 0) {
$('.link-with-params').remove();
}
}, 100); // Prevent fields from being deleted before being sent.
})