MediaWiki talk:Gadget-POTYEnhancements.core.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

TypeError: Cannot read properties of undefined (reading 'toUpperCase') on https://commons.wikimedia.org/wiki/Commons:Picture_of_the_Year/2022/R2/Gallery

[edit]

Hey there User:Legoktm - just forwarding a bug we investigated that appears to be related to this gadget ( phab:T336289 has more context).

Jon Robson, WMF 18:17, 9 May 2023 (UTC)[reply]

@Jon (WMF) (and @Matma Rex) Thanks for the ping, honestly I don't know this code at all and I want to replace it next year...do you think this fix looks correct? That's my best guess as to what is going wrong, and calling $(randomElem).css('') does produce a TypeError, though a different one... Legoktm (talk) 01:03, 10 May 2023 (UTC)[reply]
Looks probably right to me. Matma Rex (talk) 01:51, 10 May 2023 (UTC)[reply]
I applied the fix: [1]. Matma Rex (talk) 13:31, 11 May 2023 (UTC)[reply]