Yarnell 0 Posted March 12 Share Posted March 12 (edited) 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 March 12 by Yarnell Quote Link to post Share on other sites
bsmither 1,481 Posted March 12 Share Posted March 12 (edited) 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 March 12 by bsmither Quote Link to post Share on other sites
Yarnell 0 Posted March 12 Author Share Posted March 12 ahh, ok.. so on line 234 what does the !1 mean? I changed it to !0 and the scrolling stops. Quote Link to post Share on other sites
bsmither 1,481 Posted March 12 Share Posted March 12 (edited) 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 March 12 by bsmither 1 Quote Link to post Share on other sites
Yarnell 0 Posted March 12 Author Share Posted March 12 cool. I'll keep an eye out. thanks again B... much appreciated Quote Link to post Share on other sites
Yarnell 0 Posted March 15 Author Share Posted March 15 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. Quote Link to post Share on other sites
havenswift-hosting 203 Posted March 16 Share Posted March 16 Their reply is spam - they have added an external link to your quoted text. It will be removed soon and the offender banned Quote Link to post Share on other sites
Al Brookbanks 207 Posted March 16 Share Posted March 16 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. Quote Link to post Share on other sites
havenswift-hosting 203 Posted March 16 Share Posted March 16 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. Quote Link to post Share on other sites
Al Brookbanks 207 Posted March 16 Share Posted March 16 Oh yes. See what I mean about being clever! Hanson is a goner. Quote Link to post Share on other sites
Yarnell 0 Posted March 18 Author Share Posted March 18 I thought it was odd he was telling me to unplug my mouse. Quote Link to post Share on other sites
Al Brookbanks 207 Posted March 18 Share Posted March 18 3 minutes ago, Yarnell said: I thought it was odd he was telling me to unplug my mouse. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.