Plugin system update

This commit is contained in:
bergware
2022-06-26 23:33:50 +02:00
parent 30eb136d5d
commit 33cb013d16
@@ -258,7 +258,7 @@ function openPlugin(cmd,title,plg,func) {
$('.sweet-alert').hide('fast').removeClass('nchan');
$.post('/webGui/include/StartCommand.php',{cmd:cmd,pid:1},function(pid) {
if (pid > 0) footerAlert("<?=_('Process continued in background')?>",cmd,plg,func);
if (plg != null) setTimeout((func||'loadlist')+'("'+plg+'")',250);
else if (plg != null) setTimeout((func||'loadlist')+'("'+plg+'")',250);
});
});
$('.sweet-alert').addClass('nchan');