rename no_port_control to check_userlog
This commit is contained in:
@@ -532,12 +532,13 @@ Interfaces too)
|
||||
B<EXTREMELY VERY DANGEROUS>: Turning off uplinks will take out chunks of your
|
||||
network.
|
||||
|
||||
=head3 C<no_port_control>
|
||||
=head3 C<check_userlog>
|
||||
|
||||
Value: Boolean. Default: C<false>.
|
||||
Value: Boolean. Default: C<true>.
|
||||
|
||||
Set to true to disable globally support for Port Control. Mainly useful for
|
||||
development to suppress web frontend job queue callbacks.
|
||||
Set to false to disable the periodic AJAX check for completed entries in the
|
||||
job queue for this user. Mainly useful for development to suppress noisy web
|
||||
frontend activity.
|
||||
|
||||
=head2 Backend Daemon
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ vlanctl: true
|
||||
portctl_nophones: false
|
||||
portctl_vlans: false
|
||||
portctl_uplinks: false
|
||||
no_port_control: false
|
||||
check_userlog: true
|
||||
|
||||
# --------------
|
||||
# BACKEND DAEMON
|
||||
|
||||
@@ -66,7 +66,7 @@ function port_control (e) {
|
||||
// on load, establish global delegations for now and future
|
||||
$(document).ready(function() {
|
||||
// for growl-like functionality, check for notifications periodically
|
||||
if (nd_port_control) {
|
||||
if (nd_check_userlog) {
|
||||
(function worker() {
|
||||
$.ajax({
|
||||
url: uri_base + '/ajax/userlog'
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
var uri_base = '[% uri_base %]';
|
||||
var nd_port_control = '[% NOT settings.no_port_control %]';
|
||||
var nd_check_userlog = '[% settings.check_userlog %]';
|
||||
</script>
|
||||
<script type="text/javascript" src="[% uri_base %]/javascripts/netdisco.js"></script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user