rename no_port_control to check_userlog
This commit is contained in:
		| @@ -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