don't autorefresh watch view table

This commit is contained in:
Andrew Bauer 2020-12-03 08:31:52 -06:00
parent dd0cac35fe
commit 74fe47c4c5
2 changed files with 2 additions and 5 deletions

View File

@ -180,6 +180,7 @@ function setAlarmState( currentAlarmState ) {
var oldAlarm = ( !isAlarmed && wasAlarmed );
if ( newAlarm ) {
table.bootstrapTable('refresh');
if ( SOUND_ON_ALARM ) {
// Enable the alarm sound
if ( !canPlayPauseAudio ) {
@ -193,6 +194,7 @@ function setAlarmState( currentAlarmState ) {
}
}
if ( oldAlarm ) { // done with an event do a refresh
table.bootstrapTable('refresh');
if ( SOUND_ON_ALARM ) {
// Disable alarm sound
if ( !canPlayPauseAudio ) {
@ -201,7 +203,6 @@ function setAlarmState( currentAlarmState ) {
$('MediaPlayer').Stop();
}
}
table.bootstrapTable('refresh');
}
lastAlarmState = alarmState;

View File

@ -173,10 +173,6 @@ if ( canView('Events') && ($monitor->Type() != 'WebSite') ) {
data-show-export="true"
data-uncheckAll="true"
data-buttons-class="btn btn-normal"
data-auto-refresh="true"
data-auto-refresh-silent="true"
data-show-refresh="true"
data-auto-refresh-interval="5"
class="table-sm table-borderless"
>
<thead>