Hi there,
I was wondering if there is any easy way to prevent (or change) the way tickets auto scroll when you click on them.
We use our tickets with a lot of internal fields and every time one is updated it scrolls to the bottom of the ticket.
I understand this is less of a theme thing so may not be possible - just prefer to use osTicket awesome before I do source code edits π
As you probably realize, this is more of an osTicket question, rather than an osTicket Awesome question.
In any event, the easiest way to do this is with an edit to the source code.
Open /scp/js/thread.js and change line 20 from
scrollTo: function (entry) {
to
scrollTo: function (entry) { return;
Of course, the above mod would require that you reapply it any time you upgrade.
The only other option I am aware of is to install both the Attachment Preview plugin and the Prevent Autoscroll plugin.
Hey @Stevland
I recently updated all my systems and went to use this fix, however it doesn't seem to be working now. Any new ideas? I can try the plugins but I much prefered your code tweak π
It does work perfectly. Have you tried clearing your browser cache?
Nope, sorry those are my only suggestions.
But again, this is actually an osTicket question. By asking it here you on have the potential of receiving a small fraction of the suggestions that you might receive if you asked in the osTicket Mods and Customizations forum.