fix eslint errors

This commit is contained in:
Isaac Connor 2020-05-29 13:28:33 -04:00
parent 58a015e20a
commit 20870e22fa
4 changed files with 8 additions and 7 deletions

View File

@ -308,8 +308,7 @@ function pauseClicked() {
streamPause();
}
function streamPause( ) {
function streamPause() {
$j('#modeValue').html('Paused');
setButtonState( $('pauseBtn'), 'active' );
setButtonState( $('playBtn'), 'inactive' );

View File

@ -143,8 +143,8 @@ function deleteFilter( element ) {
}
var escape = document.createElement('textarea');
function escapeHTML(html) {
escape.textContent = html;
return escape.innerHTML;
escape.textContent = html;
return escape.innerHTML;
}
function parseRows(rows) {

View File

@ -208,7 +208,9 @@ window.addEventListener('DOMContentLoaded', function() {
el.onmouseover = window[el.getAttribute('data-on-mouseover-this')].bind(el, el);
});
document.querySelectorAll('div.zoom').forEach(function(el) {
el.onclick = function(ev) { window[el.getAttribute('data-on-click')](ev); };
el.onclick = function(ev) {
window[el.getAttribute('data-on-click')](ev);
};
});
});

View File

@ -635,7 +635,7 @@ function getEventCmdResponse( respObj, respText ) {
row.removeClass('recent');
}
row.addClass('updated');
} // end foreach event
} // end foreach event
var rows = $(eventListBody).getElements('tr');
for ( var i = 0; i < rows.length; i++ ) {
@ -651,7 +651,7 @@ function getEventCmdResponse( respObj, respText ) {
}
} else {
checkStreamForErrors('getEventCmdResponse', respObj);
} // end if objresult == ok
} // end if objresult == ok
var eventCmdTimeout = eventsRefreshTimeout;
if ( alarmState == STATE_ALARM || alarmState == STATE_ALERT ) {