I recently had occasion to update osTicket and found that there is an auto-scroll feature that gets on my nerves. The tickets that I work with frequently have a lot of meta data in the initial panel. Unfortunately, osTicket’s auto-scroll feature sends me to the comment box before I can assess what’s going on in this ticket. Then I have to scroll back up to the top to see what’s going on and formulate a response.
I discovered that the auto-scroll is controlled by JavaScript in the scp/threads.js file. Right around line 20 there is a scrollTo: function(entry) {} function defined there. All I did was add a return false right underneath the definition and osTicket leaves the scrolling to me.
scrollTo: function(entry) {
return false;
...
It seems like this should be a setting somewhere, but this fix will do until the next time I update osTicket and have to go hunting where they hid this function during their latest refactoring!
