Feedback form: code optimization

This commit is contained in:
bergware
2024-02-03 23:53:10 +01:00
parent c72a87723f
commit 080a3e28d3
2 changed files with 26 additions and 25 deletions
@@ -388,7 +388,7 @@ function openChanges(cmd,title,nchan,button=0) {
$('div.spinner.fixed').hide();
swal({title:title,text:"<pre id='swalbody'></pre><hr>",html:true,animation:'none',showConfirmButton:button!=0,confirmButtonText:"<?=_('Close')?>"},function(close){
$('.sweet-alert').hide('fast').removeClass('nchan');
if ($('#submit-button').length > 0) $('#submit-button').remove();
if ($('#submit_button').length > 0) $('#submit_button').remove();
});
$('.sweet-alert').addClass('nchan');
$('pre#swalbody').html(data);