mirror of
https://github.com/unraid/webgui.git
synced 2026-01-29 04:59:17 -06:00
PHP settings: enable/disable CLEAR button based on log file presence
This commit is contained in:
@@ -58,7 +58,7 @@ _(Error reporting level)_:
|
||||
<?=mk_option($conf['error_reporting']??'', "8192", "_(Deprecated Only)_");?>
|
||||
</select>
|
||||
|
||||
<input type="button" value="_(PHP Info)_" onclick="PHPinfo()"><input type="button" id="clearlog" value="_(Clear Log)_" onclick="clearLog()"<?=file_exists($log)?'':' disabled'?>><input type="button" id="viewlog" value="_(View Log)_" onclick="viewLog()" disabled>
|
||||
<input type="button" value="_(PHP Info)_" onclick="PHPinfo()"><input type="button" id="clearlog" value="_(Clear Log)_" onclick="clearLog()"<?=filesize($log)>0?'':' disabled'?>><input type="button" id="viewlog" value="_(View Log)_" onclick="viewLog()" disabled>
|
||||
: <input type="submit" value="_(Apply)_" disabled><input type="button" value="_(Done)_" onclick="done()">
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user