MediaWiki talk:Gadget-DeferredDisplay.js
Jump to navigation
Jump to search
Necessary update after change in code base[edit]
After changing the code base this gadget needs an update, cf. phab:T314318 and mw:Parsoid/Parser Unification/Media structure/FAQ #The "image" class is no longer present on file description links. See also the according change for gadget QICvote.
For this script this means editing line 21.
- old:
}).parent().add($('.thumbinner,.gallerybox').has('.nsfwelement').find('.image').parent())
- new:
}).parent().add($('.thumbinner,.gallerybox').has('.nsfwelement').find('.image, .mw-file-description').parent())
Apparently, this is is with external uses and some caching in mind. After a while this could even be changed to:
}).parent().add($('.thumbinner,.gallerybox').has('.nsfwelement').find('.mw-file-description').parent())
— Speravir – 23:54, 24 July 2023 (UTC)
- @Speravir: Done. Raymond (talk) 05:04, 25 July 2023 (UTC)