Merge pull request #1120 from bergware/master

Plugin system update
This commit is contained in:
tom mortensen
2022-06-28 06:58:56 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
@@ -239,7 +239,7 @@ function openTerminal(tag,name,more) {
return;
}
// open terminal window (run in background)
name = name.replace(/ /g,"_");
name = name.replace(/[ #]/g,"_");
tty_window = makeWindow(name+(more=='.log'?more:''),Math.max(screen.availHeight*3/5,600),Math.min(Math.max(screen.availWidth/2,900),1600));
var socket = ['ttyd','syslog'].includes(tag) ? '/webterminal/'+tag+'/' : '/logterminal/'+name+(more=='.log'?more:'')+'/';
$.get('/webGui/include/OpenTerminal.php',{tag:tag,name:name,more:more},function(){tty_window.location=socket; tty_window.focus();});
@@ -253,6 +253,7 @@ function bannerAlert(text,cmd,plg,func) {
removeBannerWarning($.cookie('addAlert'));
$.removeCookie('addAlert');
}
$(".upgrade_notice").removeClass('done');
if (plg != null) setTimeout((func||'loadlist')+'("'+plg+'")',250);
} else {
$(".upgrade_notice").addClass('done');
@@ -260,7 +261,6 @@ function bannerAlert(text,cmd,plg,func) {
setTimeout(function(){bannerAlert(text,cmd,plg,func);},1000);
}
} else {
$(".upgrade_notice").removeClass('done');
$.cookie('addAlert',addBannerWarning(text,true,true,true));
$.cookie('addAlert-text',text);
$.cookie('addAlert-cmd',cmd);
+1 -1
View File
@@ -598,7 +598,7 @@ if (file_exists($vfiopci)) {
$wgquick = '/var/log/wg-quick.log';
if (file_exists($wgquick)) {
$log = "/$diag/logs/wg-quick.txt";
exert("todos <$wgquick >".escapeshellarg($log));
run("todos <$wgquick >".escapeshellarg($log));
}
// generate unraid-api.txt