mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
Merge pull request #1400 from SimonFair/SystemDrivers
System Drivers: Code fixes
This commit is contained in:
@@ -144,7 +144,7 @@ function textsave(module,remove = false) {
|
||||
var i=module ;
|
||||
$('#text'+module).prop('disabled', true);
|
||||
$('#save'+module).attr('hidden', true);
|
||||
if (remove) x = "" ; else var x = document.getElementById("text" + module).value;
|
||||
var x = (remove) ? "" : document.getElementById("text" + module).value;
|
||||
$.post('/webGui/include/SysDrivers.php',{table:'update',module:module,conf:x},function(data){
|
||||
if(data) {
|
||||
formHasUnsavedChanges=false;
|
||||
|
||||
@@ -42,7 +42,8 @@ switch ($_POST['table']) {
|
||||
case 't1load':
|
||||
$list = file_get_contents($sysdrvfile) ;
|
||||
$arrModules = json_decode($list,TRUE) ;
|
||||
$init = file_get_contents($sysdrvinit) ;
|
||||
var $init = false;
|
||||
if (is_file($sysdrvinit)) $init = file_get_contents($sysdrvinit);
|
||||
$html = "<thead><tr><th><b>"._("Driver")."</th><th><b>"._("Description")."</th><th data-value='System|Inuse|Custom|Disabled|\"Kernel - Inuse\"'><b>"._("State")."</th><th><b>"._("Type")."</th><th><b>"._("Modprobe.d config file")."</th></tr></thead>";
|
||||
$html .= "<tbody>" ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user