diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index fd8c2fedf..dc62d41a0 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -1219,12 +1219,16 @@ function getStat() { //switch ( ( eventData[key] && eventData[key].length ) ? key : 'n/a') { switch (key) { + case 'Name': + tdString = eventData[key] + ' (Id:' + eventData['Id'] + ')'; + break; case 'Frames': tdString = '' + eventData[key] + ''; + tdString += ' Alarm:' + '' + eventData['AlarmFrames'] + ''; break; - case 'AlarmFrames': - tdString = '' + eventData[key] + ''; - break; + //case 'AlarmFrames': + // tdString = '' + eventData[key] + ''; + // break; case 'Location': tdString = eventData.Latitude + ', ' + eventData.Longitude; break; @@ -1259,12 +1263,19 @@ function getStat() { case 'Resolution': tdString = eventData.Width + 'x' + eventData.Height; break; + case 'DiskSpace': + tdString = eventData[key] + ' on ' + eventData['Storage']; + break; case 'Path': tdString = ''+eventData.Path+''; break; - case 'Archived': - case 'Emailed': - tdString = eventData[key] ? yesStr : noStr; + //case 'Archived': + //case 'Emailed': + // tdString = eventData[key] ? yesStr : noStr; + // break; + case 'Info': + tdString = translate["Archived"] + ':' + (eventData['Archived'] ? yesStr : noStr); + tdString += ', ' + translate["Emailed"] + ':' + (eventData['Emailed'] ? yesStr : noStr); break; case 'Length': const date = new Date(0); // Have to init it fresh. setSeconds seems to add time, not set it. diff --git a/web/skins/classic/views/js/event.js.php b/web/skins/classic/views/js/event.js.php index b44549963..443cbb692 100644 --- a/web/skins/classic/views/js/event.js.php +++ b/web/skins/classic/views/js/event.js.php @@ -53,7 +53,7 @@ var yesStr = ''; var noStr = ''; var eventDataStrings = { - Id: '', + Name: '', MonitorId: '', MonitorName: '', @@ -65,17 +65,18 @@ var eventDataStrings = { EndDateTimeFormatted: '', Length: '', Frames: '', - AlarmFrames: '', + Score: '', Resolution: '', DiskSpace: '', - Storage: '', + Path: '', - Archived: '', - Emailed: '' + + + Info: '' }; if ( parseInt(ZM_OPT_USE_GEOLOCATION) ) { eventDataStrings.Location = ''; @@ -114,4 +115,7 @@ var translate = { "Live": "", "Edit": "", "All Events": "", + "Info": "", + "Archived": "", + "Emailed": "", };