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

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

View File

@@ -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'

View File

@@ -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>