valid css class name must not begin with number

This commit is contained in:
Oliver Gorwits
2012-12-01 21:39:56 +00:00
parent 9ee14a5e63
commit 1d22a895bc

View File

@@ -56,7 +56,7 @@ function recordLocation(d,i) {
}
// convert a device name to a valid CSS class name
function to_class(name) { return name.replace(/\./g, "_") }
function to_class(name) { return 'nd_' + name.replace(/\./g, "_") }
// handler for clicking on a circle - redirect to that device's netmap
function circleClick(d) {