I've seen in cacti.plugin.camm-min.js , that there is actually 2 colors defined for Normal (Green) and Major (Orange).
I'd like to add other colors for Minor and Critical trap messages.
I tried to modifiy as follow with or without "unminify" the JS, but it doesn't work :
Code: Select all
view: new Ext.grid.GroupingView({
forceFit: true,
getRowClass: function (d, b) {
var a = "";
var c = Ext.util.Format.lowercase(d.data.severity);
switch (c) {
case "normal":
a = "info-row";
break;
case "minor":
a = "alert-row";
break;
case "critical":
a = "critical-row";
break;
case "major":
a = "error-row";
break
}
How could I do ?
Tks for your help
Franck