Snippets

Mythics Oracle Process Cloud Service - Hide comments section - Javascript in Message control

Created by Jonathan Hult
<script type="text/javascript">
//<![CDATA[
	// .xdc is the Comments | History | More Information under the title at top
	// sdhComments is the actual comments section
	// If comments link in .xdc is not hidden and someone clicks, it can make comments section reappear
	
	var comElems = ['.xdc', 'div[id$=sdhComments]'];
	
	for (var i = 0; i < comElems.length; i++) {
		// Find the Comments section by its ID and hide it
		var elm = parent.document.querySelector(comElems[i]);

		if (elm != null) {
			elm.style.display = 'none';
		}
	}
//]]>
</script>

Comments (1)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.