Resolved
The issue is because of:
$("input(.dp)").focus();
in "scp.js"
It keeps scrolling until it finds the first available field for entry (in my case, the email reply checkbox)...
I call this an issue as this behavior doesn't seem optimal. The first action a user generally wants to do when clicking on a ticket is view the ticket, not post a reply.
I didn't want to take that line out, so I resolved the issue in a different way:
1. I replaced the above line with the following:
var id = getURLTicketVars();
var a = getURLTicketVars();
if(getPage() != "tickets.php" || (id == null || a != null))
$("input(.dp)").focus();
2. I added the following to the very bottom of "scp.js":
function getURLTicketVars() {
var vars = {};
var parts = window.location.href.replace(+(+)=(*)/gi, function(m,key,value) {
vars = value;
});
return vars;
}
function getPage() {
var sPath=window.location.pathname;
return sPath.substring(sPath.lastIndexOf('/') + 1);
}