User talk:DeirdreAnne/closemfd.js

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

This is one of potentially many UserScripts needing fixes for addOnloadHook deprecation. Would Doug or any available administrator please replace

addOnloadHook(automfd_add_mfd_tabs);

with

$(automfd_add_mfd_tabs);

and then feel free to delete this comment or talk page as is appropriate. Thank you — {{U|Technical 13}} (etc) 21:35, 1 December 2014 (UTC)Reply

Legacy JavaScript edit

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:11, 19 January 2015 (UTC)Reply