Home > WebEOC > Admin Guide > Board Building Tips > Alert when Refresh Disabled

Alert when Refresh Disabled

Table of contents
No headers

To enable alerts when the Refresh function is disabled, add the following to the applicable board view, right after the <div class="content"> and before the <eocrepeatallrecords>:

<div align="center" id="RefreshMessage" style="font-family:arial; font-size: 18pt; font-weight:bold; color:red; display:none;">*** Auto-Refresh Disabled ***</div>
<script type="text/javascript"> 
var RefreshBox = parent.header.document.getElementById("chkDisableRefresh"); 
var RefreshNote = document.getElementById("RefreshMessage"); 
if (typeof RefreshBox.addEventListener == "function") { 
RefreshBox.addEventListener("click", ToggleMessage, false); 
else { 
RefreshBox.attachEvent("onclick", ToggleMessage); 
function ToggleMessage() 
if (RefreshBox.checked == true) 
RefreshNote.style.display = ''; 
RefreshNote.style.display = 'none'; 
Last modified



This page has no classifications.