|
@@ -20,15 +20,15 @@ matchBrackets: true,//括号匹配
|
|
|
foldGutter: true
|
|
|
}
|
|
|
);
|
|
|
-//]]>
|
|
|
function reload_config(){
|
|
|
XHR.get('<%=url([[admin]], [[services]], [[AdGuardHome]], [[reloadconfig]])%>', null,
|
|
|
function(x, data) {
|
|
|
location.reload();
|
|
|
- });
|
|
|
+ });}
|
|
|
+//]]>
|
|
|
</script>
|
|
|
-<%if NXFS.access("/tmp/AdGuardHometmpconfig.yaml") then%>
|
|
|
+<%fs=require"nixio.fs"%>
|
|
|
+<%if fs.access("/tmp/AdGuardHometmpconfig.yaml") then%>
|
|
|
<input type="button" id="apply_update_button" value="<%:Reload Config%>" onclick=" return reload_config() "/>
|
|
|
<%end%>
|
|
|
-<%+cbi/valuefooter%>
|
|
|
-
|
|
|
+<%+cbi/valuefooter%>
|