mirror of
https://github.com/key-networks/ztncui.git
synced 2025-06-07 18:53:45 +02:00
Bug distinguishing checkboxes for multiple members
This commit is contained in:
parent
ac6a11653a
commit
02d301418a
2 changed files with 4 additions and 8 deletions
|
@ -363,8 +363,6 @@ exports.v4AssignMode = async function (req, res) {
|
||||||
v4AssignMode: { zt: req.body.zt }
|
v4AssignMode: { zt: req.body.zt }
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('v4AssignMode: ' + JSON.stringify(v4AssignMode));
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const network = await zt.network_object(req.params.nwid, v4AssignMode);
|
const network = await zt.network_object(req.params.nwid, v4AssignMode);
|
||||||
nav.whence = '/controller/network/' + network.nwid;
|
nav.whence = '/controller/network/' + network.nwid;
|
||||||
|
@ -392,8 +390,6 @@ exports.v6AssignMode = async function (req, res) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('v6AssignMode: ' + JSON.stringify(v6AssignMode));
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const network = await zt.network_object(req.params.nwid, v6AssignMode);
|
const network = await zt.network_object(req.params.nwid, v6AssignMode);
|
||||||
nav.whence = '/controller/network/' + network.nwid;
|
nav.whence = '/controller/network/' + network.nwid;
|
||||||
|
|
|
@ -8,13 +8,13 @@ extends network_layout
|
||||||
block net_content
|
block net_content
|
||||||
script.
|
script.
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#authCheckBox').on('click', function() {
|
$('.authCheck').on('click', function() {
|
||||||
$.post('', {'id': this.value, 'auth': this.checked});
|
$.post('', {'id': this.value, 'auth': this.checked});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#activeBridgeCheckBox').on('click', function() {
|
$('.bridgeCheck').on('click', function() {
|
||||||
$.post('', {'id': this.value, 'activeBridge': this.checked});
|
$.post('', {'id': this.value, 'activeBridge': this.checked});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -51,9 +51,9 @@ block net_content
|
||||||
td
|
td
|
||||||
a(href=url) #{member.id}
|
a(href=url) #{member.id}
|
||||||
td
|
td
|
||||||
input.checkbox(type='checkbox' id='authCheckBox' value=member.id checked=(member.authorized? true : false))
|
input.authCheck(type='checkbox' value=member.id checked=(member.authorized? true : false))
|
||||||
td
|
td
|
||||||
input.checkbox(type='checkbox' id='activeBridgeCheckBox' value=member.id checked=(member.activeBridge? true : false))
|
input.bridgeCheck(type='checkbox' value=member.id checked=(member.activeBridge? true : false))
|
||||||
td
|
td
|
||||||
each ipAssignment in member.ipAssignments
|
each ipAssignment in member.ipAssignments
|
||||||
a(href='/controller/network/' + network.nwid + '/member/' + member.id + '/ipAssignments')
|
a(href='/controller/network/' + network.nwid + '/member/' + member.id + '/ipAssignments')
|
||||||
|
|
Loading…
Add table
Reference in a new issue