mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-19 03:56:18 -04:00
Don't try to populate event info table if there is no data. Prevents js errors
This commit is contained in:
@@ -1227,6 +1227,8 @@ function getEvtStatsCookie() {
|
||||
|
||||
function getStat() {
|
||||
eventStatsTable.empty().append('<tbody>');
|
||||
if (!eventData) return;
|
||||
|
||||
$j.each(eventDataStrings, function(key) {
|
||||
if (key == 'MonitorId') return true; // Not show ID string
|
||||
var th = $j('<th class="label">').addClass('text-right').text(eventDataStrings[key]);
|
||||
|
||||
Reference in New Issue
Block a user