8
0
mirror of https://github.com/key-networks/ztncui.git synced 2024-08-31 04:28:00 +00:00

Bug distinguishing checkboxes for multiple members

This commit is contained in:
Key Networks
2018-02-02 16:34:25 +08:00
parent ac6a11653a
commit 02d301418a
2 changed files with 4 additions and 8 deletions

View File

@@ -8,13 +8,13 @@ extends network_layout
block net_content
script.
$(function() {
$('#authCheckBox').on('click', function() {
$('.authCheck').on('click', function() {
$.post('', {'id': this.value, 'auth': this.checked});
});
});
$(function() {
$('#activeBridgeCheckBox').on('click', function() {
$('.bridgeCheck').on('click', function() {
$.post('', {'id': this.value, 'activeBridge': this.checked});
});
});
@@ -51,9 +51,9 @@ block net_content
td
a(href=url) #{member.id}
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
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
each ipAssignment in member.ipAssignments
a(href='/controller/network/' + network.nwid + '/member/' + member.id + '/ipAssignments')