Plugin system update

Added multi remove ability on Plugins page
This commit is contained in:
bergware
2022-06-26 12:04:11 +02:00
parent 0ff9958e4f
commit 09c0c54866
2 changed files with 11 additions and 5 deletions
@@ -34,7 +34,7 @@ function check_plugin($arg, &$ncsi) {
function make_link($method, $arg, $extra='') {
$plg = basename($arg,'.plg').':'.$method;
$id = str_replace(['.',' ','_'],'',$plg);
$check = $method=='remove' ? "<input type='checkbox' onClick='document.getElementById(\"$id\").disabled=!this.checked'>" : "";
$check = $method=='remove' ? "<input type='checkbox' data='$arg' class='remove' onClick='document.getElementById(\"$id\").disabled=!this.checked;multiRemove()'>" : "";
$disabled = $check ? ' disabled' : '';
if ($method == 'delete') {
$cmd = "plugin_rm $arg"; $plg = "";