Plugin system update

Change CLOSE button to DONE button to mimic old behavior
This commit is contained in:
bergware
2022-07-08 21:43:32 +02:00
parent 43721b59d1
commit 1f8c84f075
@@ -274,7 +274,7 @@ function openPlugin(cmd,title,plg,func) {
$.post('/webGui/include/StartCommand.php',{cmd:cmd+' nchan'},function(pid) {
if (pid==0) return;
nchan_plugins.start();
swal({title:title,text:"<pre id='text'></pre><hr>",html:true,animation:'none',confirmButtonText:"<?=_('Close')?>"},function(){
swal({title:title,text:"<pre id='text'></pre><hr>",html:true,animation:'none',confirmButtonText:"<?=_('Done')?>"},function(){
nchan_plugins.stop();
$('.sweet-alert').hide('fast').removeClass('nchan');
setTimeout(function(){bannerAlert("<?=_('Attention - operation continues in background')?>",cmd,plg,func);});
@@ -297,7 +297,7 @@ function openChanges(cmd,title,nchan) {
$.post('/webGui/include/StartCommand.php',{cmd:cmd+' nchan'},function(pid) {
if (pid==0) return;
startStopNchan('start',nchan);
swal({title:title,text:"<pre id='body'></pre><hr>",html:true,animation:'none',confirmButtonText:"<?=_('Close')?>"},function(){
swal({title:title,text:"<pre id='body'></pre><hr>",html:true,animation:'none',confirmButtonText:"<?=_('Done')?>"},function(){
startStopNchan('stop',nchan);
$('.sweet-alert').hide('fast').removeClass('nchan');
});