Loading src/debugfs-webgui/debugfs.js +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ function init(){ } }); var b1 = $("<button>",{id:"b1"}).css({margin:"0px 0px 0px 10px"}).html("save to fs"); var b1 = $("<button>",{id:"b1"}).css({margin:"0px 0px 0px 10px"}).html("save to persistent storage"); b1.click(function(){ $.ajax({ Loading @@ -28,7 +28,7 @@ function init(){ }); }); var b2 = $("<button>",{id:"b2"}).css({margin:"0px 0px 0px 10px"}).html("apply all"); var b2 = $("<button>",{id:"b2"}).css({margin:"0px 0px 0px 10px"}).html("restore configs for selected files"); b2.click(function(){ $.ajax({ Loading src/debugfs-webgui/debugfs.php +13 −12 Original line number Diff line number Diff line Loading @@ -99,8 +99,8 @@ function update_config($data){ function apply_config_to_control(){ global $tmp_config; $arr_config = json_decode(file_get_contents($tmp_config),true); foreach($arr_config as $k0 => $v0){ if ($v0['state']==1){ foreach($v0['configs'] as $k1 => $v1){ if ($v1['state']==1){ foreach($v1['lines'] as $k2 => $v2){ Loading @@ -115,7 +115,8 @@ function apply_config_to_control(){ } } } } echo "Done"; } function sync_to_config($file,$line,$flag){ Loading Loading
src/debugfs-webgui/debugfs.js +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ function init(){ } }); var b1 = $("<button>",{id:"b1"}).css({margin:"0px 0px 0px 10px"}).html("save to fs"); var b1 = $("<button>",{id:"b1"}).css({margin:"0px 0px 0px 10px"}).html("save to persistent storage"); b1.click(function(){ $.ajax({ Loading @@ -28,7 +28,7 @@ function init(){ }); }); var b2 = $("<button>",{id:"b2"}).css({margin:"0px 0px 0px 10px"}).html("apply all"); var b2 = $("<button>",{id:"b2"}).css({margin:"0px 0px 0px 10px"}).html("restore configs for selected files"); b2.click(function(){ $.ajax({ Loading
src/debugfs-webgui/debugfs.php +13 −12 Original line number Diff line number Diff line Loading @@ -99,8 +99,8 @@ function update_config($data){ function apply_config_to_control(){ global $tmp_config; $arr_config = json_decode(file_get_contents($tmp_config),true); foreach($arr_config as $k0 => $v0){ if ($v0['state']==1){ foreach($v0['configs'] as $k1 => $v1){ if ($v1['state']==1){ foreach($v1['lines'] as $k2 => $v2){ Loading @@ -115,7 +115,8 @@ function apply_config_to_control(){ } } } } echo "Done"; } function sync_to_config($file,$line,$flag){ Loading