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 = ''; 
} 
else 
{ 
RefreshNote.style.display = 'none'; 
} 
} 
</script>
You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.