mirror of
https://github.com/key-networks/ztncui.git
synced 2025-06-08 11:13:45 +02:00
Add missing frontend script for members
This commit is contained in:
parent
64da7e4849
commit
65c3b1f759
1 changed files with 13 additions and 0 deletions
|
@ -32,6 +32,19 @@ block net_content
|
||||||
a.btn.btn-primary(style="margin: 5px" href=(network.nwid + '/v6AssignMode') role='button') IPv6 Assign Mode
|
a.btn.btn-primary(style="margin: 5px" href=(network.nwid + '/v6AssignMode') role='button') IPv6 Assign Mode
|
||||||
|
|
||||||
if (members !== undefined)
|
if (members !== undefined)
|
||||||
|
script.
|
||||||
|
$(function() {
|
||||||
|
const url = "/controller/network/#{network.nwid}/members";
|
||||||
|
$('.authCheck').on('click', function() {
|
||||||
|
$.post(url, {'id': this.value, 'auth': this.checked});
|
||||||
|
});
|
||||||
|
$('.bridgeCheck').on('click', function() {
|
||||||
|
$.post(url, {'id': this.value, 'activeBridge': this.checked});
|
||||||
|
});
|
||||||
|
$('.text').on('change', function() {
|
||||||
|
$.post(url, {'id': this.name, 'name': this.value});
|
||||||
|
});
|
||||||
|
});
|
||||||
h3#members Members (#{members.length})
|
h3#members Members (#{members.length})
|
||||||
form(method='POST' action='')
|
form(method='POST' action='')
|
||||||
table.table.table-responsive.table-striped.table-hover
|
table.table.table-responsive.table-striped.table-hover
|
||||||
|
|
Loading…
Add table
Reference in a new issue