Jump to content

Need help with unwanted auto scrolling


Recommended Posts

Hey all,

I found the culprit... line 248-250 in admin.js
Does anyone know exactly what this is used for, will it have any harful effects if I remove it?

            var e = jQuery.extend({
                updateOn: "keyup"
            }, t);
Edited by Yarnell
Link to post
Share on other sites

Yes.

That jQuery extend (merging objects) is part of a function to manage an indication if, when filling in a password field, that the confirm password field matches.

 

Edited by bsmither
Link to post
Share on other sites

The variable t is assigned a default value of false -- logical negating a non-zero number results in a logical false. Code-squeezers and minimizers convert false to !1 and true to !0 so that a few bytes of code script is eliminated. (A few bytes here and there adds up. Saves on download byte count. The admin.js file was originally minimized, but now is somewhat pretty-printed.)

Doing this initializing then gives a default value as the argument to all the functions that follow. But these functions usually acquire the thing on the web page that the function affects.

So, setting t to true as it affects scrolling to the top of the page on document ready... not sure.

Edited by bsmither
  • Like 1
Link to post
Share on other sites
3 hours ago, Hanson said:

Unplug your mouse, then plug it back in after a few minutes.

Plug your mouse into a different USB port.

Make sure your mouse cable isn't damaged.

If you're using a wireless mouse, check or change your batteries.

Make sure there's no dirt blocking your scroll wheel.

Hey Hanson, I don't think it has anything to do with the mouse, it works fine as far as I know. For some reason, anytime there is a # in the address bar (such as admin.php#dashboard) and I refresh the page. it jerks and tries to scroll up.

Link to post
Share on other sites
1 minute ago, havenswift-hosting said:

Their reply is spam - they have added an external link to your quoted text.  It will be removed soon and the offender banned

It's not. I know Yarnell now. :) The link left in by mistake is to hs CubeCart store. 

It's extremely challenging spotting spam at the moment. They are getting too clever. 

Link to post
Share on other sites
8 minutes ago, Al Brookbanks said:

It's not. I know Yarnell now. :) The link left in by mistake is to hs CubeCart store. 

I wasn’t talking about his reply but the earlier one !  Nonsense reply which they then edited to add a link.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...