lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.5.5 vs lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.5.6

- old
+ new

@@ -30,15 +30,17 @@ if ((filtered_events_count > 0) && ($.inArray(nodekey, filtered_events) == -1)) { } else { var node = data[nodekey]; for (var a in node) { + var is_unknown = node[a]['status'] >= 3 || node[a]['status'] < 0; var dataObject = { client: nodekey, check: a, status: node[a]['status'], output: node[a]['output'], - occurrences: node[a]['occurrences'] + occurrences: node[a]['occurrences'], + is_unknown: is_unknown }; if (m_events[node[a]['status']] == null) { m_events[node[a]['status']] = new Array(); }