MediaWiki talk:Gadget-EnhancedInterwikis.js

Latest comment: 9 years ago by Technical 13 in topic Legacy JavaScript

Please replace this line: h5.style.cursor = 'pointer'

with: if (typeof h5.style === "undefined") h5.style = {'cursor': 'pointer'}; else h5.style.cursor = 'pointer';

This is causing JS errors for me. PiRSquared17 (talk) 22:57, 18 March 2014 (UTC)Reply

I've changed that now - I hope everything works. -Barras talk 14:00, 3 April 2014 (UTC)Reply

Legacy JavaScript change

Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook( ... ) needs to be replaced with $( ... ) or $( function() { ... } ) (depending on use); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' ); and addPortletLink needs to be called with mw.util.addPortletLink. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (etc) 21:24, 20 January 2015 (UTC)Reply

Return to "Gadget-EnhancedInterwikis.js" page.