I have created a discussion in a discussion board list. When I participate in the Discussion, after every reply there is a link displayed at the end of the discussion saying "Show Quoted Messages". I don't want these links to appear anywhere in the discussion screen.
To hide the "Show Quoted Messages" link edit the page & add a CEWP at the top of the list. Now add the following script in the CEWP.
<script type="text/javascript">
$(document).ready(function() {
var elements = document.getElementsByTagName("a");
for (var key = 0; key < elements.length; key++){
if (elements[key].innerHTML.indexOf("Show Quoted Messages") != -1){
elements[key].style.display = 'none';
}
}
});</script>
Now stop editing the page & you will notice that "Show Quoted Messages" link is no more visible.
Also we can hide the View Properties link next to the Reply link.
To hide the View Properties link add the following script in the CEWP
TABLE.ms-disc-bar TD A[id^='DisplayLink'] {
DISPLAY: none
}
TABLE.ms-disc-bar TD.ms-separator IMG {
DISPLAY: none
}</style>
Hey can you help me with something related to this?
ReplyDeleteHi
ReplyDeleteThe code for view properties work but for hide "Show Quoted Messages" does not.
Any suggestion?
I am using sharepoint 2010