Yarnell Posted March 12, 2021 Share Posted March 12, 2021 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); Link to comment Share on other sites More sharing options...
bsmither Posted March 12, 2021 Share Posted March 12, 2021 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. Link to comment Share on other sites More sharing options...
Yarnell Posted March 12, 2021 Author Share Posted March 12, 2021 ahh, ok.. so on line 234 what does the !1 mean? I changed it to !0 and the scrolling stops. Link to comment Share on other sites More sharing options...
bsmither Posted March 12, 2021 Share Posted March 12, 2021 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. Link to comment Share on other sites More sharing options...
Yarnell Posted March 12, 2021 Author Share Posted March 12, 2021 cool. I'll keep an eye out. thanks again B... much appreciated Link to comment Share on other sites More sharing options...
Yarnell Posted March 15, 2021 Author Share Posted March 15, 2021 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 comment Share on other sites More sharing options...
havenswift-hosting Posted March 16, 2021 Share Posted March 16, 2021 Their reply is spam - they have added an external link to your quoted text. It will be removed soon and the offender banned Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 16, 2021 Share Posted March 16, 2021 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 comment Share on other sites More sharing options...
havenswift-hosting Posted March 16, 2021 Share Posted March 16, 2021 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 comment Share on other sites More sharing options...
Al Brookbanks Posted March 16, 2021 Share Posted March 16, 2021 Oh yes. See what I mean about being clever! Hanson is a goner. Link to comment Share on other sites More sharing options...
Yarnell Posted March 18, 2021 Author Share Posted March 18, 2021 I thought it was odd he was telling me to unplug my mouse. Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 18, 2021 Share Posted March 18, 2021 3 minutes ago, Yarnell said: I thought it was odd he was telling me to unplug my mouse. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.