mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Fixing double firing of load vlan 1 when the tab is loaded
This commit is contained in:
1 parent
23c8b2a8b3
commit
2d5424fedc
1 file changed
+2
-6
+2
-6
@@ -1492,11 +1492,7 @@ function vlanRefresh() {
|
|||||||
href: "#vlan",
|
href: "#vlan",
|
||||||
text: String(v.id) + ($("vmgmtcur").dataset.id == v.id ? " ("+t("v_mgmt")+")":""),
|
text: String(v.id) + ($("vmgmtcur").dataset.id == v.id ? " ("+t("v_mgmt")+")":""),
|
||||||
"data-id": v.id,
|
"data-id": v.id,
|
||||||
"data-name": v.name,
|
"data-name": v.name
|
||||||
onclick: function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
vlanLoad(v.id);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
tr.insertCell().appendChild(l);
|
tr.insertCell().appendChild(l);
|
||||||
tr.insertCell().textContent = v.name || "";
|
tr.insertCell().textContent = v.name || "";
|
||||||
@@ -1742,7 +1738,7 @@ tabHooks.vlan = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
function VlanInit() {
|
function VlanInit() {
|
||||||
$("vtable").tBodies[0].firstChild.firstChild.firstChild.click();
|
vlanLoad($("vtable").tBodies[0].firstChild.firstChild.firstChild.dataset.id)
|
||||||
};
|
};
|
||||||
var l2Rows=[],l2SortCol="pport",l2SortDir=1,l2Gen=0;
|
var l2Rows=[],l2SortCol="pport",l2SortDir=1,l2Gen=0;
|
||||||
function l2Load(){
|
function l2Load(){
|
||||||
|
|||||||
Reference in new issue
Block a user