aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-dhcp.js
blob: b852a456551b82ece6c704e3b77bcce364e82097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";

var nmsDhcp = nmsDhcp || {

}

nmsDhcp.init = function() {
	nmsData.addHandler("dhcpsummary", "nmsDhcpHandler", nmsDhcp.updateSummary);
}

nmsDhcp.updateSummary = function() {
	var e = document.getElementById("dhcp-summary");
	if (e == undefined) {
		return;
	}
	e.innerHTML = nmsData.dhcpsummary.dhcp.clients + " clients";
}