deviant mousedown
Wednesday, 7. November 2007, 01:44:28
The reason is buried deep inside this JS file:
if (window.browser && (browser.isGecko || browser.isOpera)) {
uploadForm.onmousedown = function () { return false; }; // firefox only - screws up other browsers
}So this "Firefox only" workaround against an unspecified problem I can't begin to understand is also applied to Opera - with the fatal result that we ignore any mouse clicks inside the upload form because the script cancels mousedown. I'm not sure who's deviating from what here..
(As an aside, code like this makes me pretty curious - what will show up in the site if I throw in a small user JS to set deviantART.pageData.i_am_super_privileged to true?
// most awesome hack ever if (!path[1] && whoosh[0] == 'Fan Art' && deviantART.pageData && deviantART.pageData.i_am_super_privileged)source)
Originally posted by hallvors:
Lol, does that "awesome hack" really work? I'll have to read this later when I'm completely capable, lol. Looks good though. Those Deviants...
By kyleabaker, # 7. November 2007, 09:40:21
I have to remember that one
By dduenker, # 7. November 2007, 10:32:02
By hallvors, # 7. November 2007, 11:20:56
By scipio, # 7. November 2007, 17:44:24
@hallvors: I suspect FF might propagade the event despite mousedown returning false. What the workaround was for... er... no idea
By _Grey_, # 8. November 2007, 14:10:41
By Cornflower, # 21. November 2007, 01:23:39
Shame on them!
By Achrintist, # 1. April 2008, 23:32:00