rename no_port_control to check_userlog

This commit is contained in:
Oliver Gorwits
2013-09-23 20:00:50 +01:00
parent 75345fe49d
commit 622bd629cb
4 changed files with 8 additions and 7 deletions

View File

@@ -532,12 +532,13 @@ Interfaces too)
B<EXTREMELY VERY DANGEROUS>: Turning off uplinks will take out chunks of your B<EXTREMELY VERY DANGEROUS>: Turning off uplinks will take out chunks of your
network. 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 Set to false to disable the periodic AJAX check for completed entries in the
development to suppress web frontend job queue callbacks. job queue for this user. Mainly useful for development to suppress noisy web
frontend activity.
=head2 Backend Daemon =head2 Backend Daemon

View File

@@ -107,7 +107,7 @@ vlanctl: true
portctl_nophones: false portctl_nophones: false
portctl_vlans: false portctl_vlans: false
portctl_uplinks: false portctl_uplinks: false
no_port_control: false check_userlog: true
# -------------- # --------------
# BACKEND DAEMON # BACKEND DAEMON

View File

@@ -66,7 +66,7 @@ function port_control (e) {
// on load, establish global delegations for now and future // on load, establish global delegations for now and future
$(document).ready(function() { $(document).ready(function() {
// for growl-like functionality, check for notifications periodically // for growl-like functionality, check for notifications periodically
if (nd_port_control) { if (nd_check_userlog) {
(function worker() { (function worker() {
$.ajax({ $.ajax({
url: uri_base + '/ajax/userlog' url: uri_base + '/ajax/userlog'

View File

@@ -26,7 +26,7 @@
<script type="text/javascript"> <script type="text/javascript">
var uri_base = '[% uri_base %]'; var uri_base = '[% uri_base %]';
var nd_port_control = '[% NOT settings.no_port_control %]'; var nd_check_userlog = '[% settings.check_userlog %]';
</script> </script>
<script type="text/javascript" src="[% uri_base %]/javascripts/netdisco.js"></script> <script type="text/javascript" src="[% uri_base %]/javascripts/netdisco.js"></script>