Forum

Prevent auto scroll...
 
Notifications
Clear all

Prevent auto scroll when opening tickets

6 Posts
5 Users
0 Reactions
35 Views
Posts: 26
Topic starter
(@nicholasjansen)
Member
Joined: 6 years ago

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 πŸ™‚


5 Replies
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

@NIcholasjansen,

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.


Reply
Posts: 26
Topic starter
(@nicholasjansen)
Member
Joined: 6 years ago

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 πŸ™‚


Reply
Posts: 28
(@kkrumm)
Member
Joined: 8 years ago

It does work perfectly. Have you tried clearing your browser cache? 


Reply
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

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.


Reply
Page 1 / 2
Share: