Jdlrobson added a comment.
The dialog is added via this code: https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/f2e96e1b08fc5ae2e2e92f05d5eda137dc6b1bc8/client/resources/jquery.wikibase/jquery.wikibase.linkitem.js#172 and added by https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/f2e96e1b08fc5ae2e2e92f05d5eda137dc6b1bc8/client/resources/wikibase.client.linkitem.init.js#82 ... and added as part of the `'wikibase.client.linkitem.init'` module which apparently is getting loaded `mw.loader.getState('wikibase.client.linkitem.init') === 'ready'` This actually works fine with debug=true, (https://eu.wikipedia.org/wiki/Messali_Hadj?useskinversion=2&debug=true) so this tells me we have some kind of race condition. I still can't setup Wikibase but I replicated this behaviour with: $wgHooks['SkinAfterPortlet'][] = function ( $skin, $name, &$html ) { //$html .= "<!--injected by LocalSettings.php: $name-->"; if ( $name === 'lang' ) { $html .= '<span class="wb-langlinks-edit wb-langlinks-link" style="list-style: none;text-align: right;padding-right: 0.5em !important;line-height: 1.125em;font-size: 0.75em;float: right;"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q107514094#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage" style="color: #54595d !important;">Edit links</a></span>'; $html .= '<script>$(".wb-langlinks-link .wbc-editpage").on("click", (ev) => { alert("Works"); ev.preventDefault(); });</script>'; } }; With that, it was clear the issue relates to a missing class added in https://gerrit.wikimedia.org/r/711196 TASK DETAIL https://phabricator.wikimedia.org/T287206 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jdlrobson Cc: Edtadros, sgrabarczuk, bwang, Mike_Peel, cjming, Aklapper, Lydia_Pintscher, alexhollender, Jdlrobson, Ladsgroup, Addshore, Theklan, ovasileva, Biggs657, Patafisik_WMF, Invadibot, Lalamarie69, Selby, maantietaja, Juan90264, Alter-paule, Beast1978, Un1tY, Akuckartz, Demian, Hook696, Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Winter, Lewizho99, JJMC89, Maathavan, Iniquity, _jensen, rosalieper, Agabi10, Scott_WUaS, Volker_E, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
