#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

View File

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