📄 lan_mgmt.js
字号:
<script language="JavaScript">
<? include ../html/js/val.js ?>
<? include ../html/setup/pvc.js ?>
<? if eq `1` `$var:HasVlan` `<? include ../html/setup/vlan.js ?>` ` ` ?>
<? include ../html/js/ip.js ?>
<? include ../html/js/jsl.js ?>
<? include ../html/js/error.js ?>
function uiDoOnLoad()
{
}
function uiDoSave()
{
jslDisable("uiPostLANAdd");
jslDisable("uiPostLANDelete");
jslFormSubmit("uiPostForm");
}
function uiDoAddRule(lan)
{
document.getElementById("uiPostLANAdd").value = document.getElementById("uiViewInterface").value + "|" + lan;
jslEnable("uiPostLANAdd");
jslDisable("uiPostLANDelete");
jslFormSubmit("uiPostForm");
}
function uiDoDeleteRule(lan)
{
//if(document.getElementById("uiViewLAN"+lan).value=="eth0") {
// alert("Ethernet interface can not be removed out of LAN Group 1");
// return;
//}
document.getElementById("uiPostLANDelete").value = document.getElementById("uiViewLAN"+lan).value + "|" + lan;
jslEnable("uiPostLANDelete");
jslDisable("uiPostLANAdd");
jslFormSubmit("uiPostForm");
}
function uiDoCancel()
{
jslGoTo(null,"home");
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -