Another easy solution... Insert a button to scroll to the bottom of the page
1
Launch your HTML editor and open include/staff/viewticket.inc.php and include/client/viewticket.inc.php.
2
Insert the following code anywhere in document's "body" section ( I suggest include it near ticket number at ticket details)
This creates a button to use for testing the scroll function.
E.g: Find..
<td class="msg" width=50%>
Ticket #<?=$ticket->getExtId()?> <a href="tickets.php?id=<?=$id?>" title="Reload"><span class="Icon refresh"> </span></a></td>
Replace by...
<td class="msg" width=50%>
Ticket #<?=$ticket->getExtId()?> <a href="tickets.php?id=<?=$id?>" title="Reload"><span class="Icon refresh"> </span></a></td> <input type="button" value="Scroll" onclick="return ScrollPage()" />
3
Add this JavaScript code to the top of these files...
function ScrollPage() {
var pageHeight = document.body.scrollHeight;
window.scrollTo(0, pageHeight/2)
}
This function runs when you click the button. The code stores the height of the page in the variable named "pageHeight" and uses the "scrollTo" function to scroll the page to the bottom.
Hope this helps :)