Suppress plugin online check when actions are done from plugin page itself

This commit is contained in:
bergware
2017-07-09 13:50:44 +02:00
parent 71fbfaeb98
commit 1128540c88
3 changed files with 15 additions and 5 deletions
@@ -31,7 +31,8 @@ function make_link($method, $arg, $extra='') {
$check = $method=='remove' ? "<input type='checkbox' onClick='document.getElementById(\"$id\").disabled=!this.checked'>" : "";
$disabled = $check ? ' disabled' : '';
$cmd = $method == 'delete' ? "/plugins/dynamix.plugin.manager/scripts/plugin_rm&arg1=$arg" : "/plugins/dynamix.plugin.manager/scripts/plugin&arg1=$method&arg2=$arg".($extra?"&arg3=$extra":"");
return "{$check}<input type='button' id='$id' value='".ucfirst($method)."' onclick='hideUpgrade();openBox(\"{$cmd}\",\"".ucwords($method)." Plugin\",600,900,true)'{$disabled}>";
$clr = $method == 'delete' ? "" : "noAudit();";
return "{$check}<input type='button' id='$id' value='".ucfirst($method)."' onclick='{$clr}openBox(\"{$cmd}\",\"".ucwords($method)." Plugin\",600,900,true)'{$disabled}>";
}
// trying our best to find an icon