MediaWiki talk:Gadget-ajaxrecentchanges.js

Latest comment: 7 months ago by Pppery in topic Legacy JavaScript

Request for update edit

Please replace:

addOnloadHook(function() {
	addPortletLink( 'p-tb', '/wiki/Special:BlankPage?blankspecial=ajaxrc', arc_i18n['title'], 't-ajax-rc', arc_i18n['desc'] );
});

with

$(function() {
	mw.util.addPortletLink( 'p-tb', '/wiki/Special:BlankPage?blankspecial=ajaxrc', arc_i18n['title'], 't-ajax-rc', arc_i18n['desc'] );
});

to accommodate addOnloadHook deprection. Thanks! Technical 13 (talk) 17:44, 15 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 $(); 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. Technical 13 (talk) 18:12, 18 January 2015 (UTC)Reply

Was fixed a while ago. * Pppery * it has begun 16:48, 16 September 2023 (UTC)Reply

ajaxRcFormNamespacesCB is not defined edit

This gadget seems to create a link to https://www.mediawiki.org/wiki/Special:BlankPage?blankspecial=ajaxrc which throws a JavaScript error when I visit it. The global is not defined anywhere. I suspect you need to register ajaxRcFormNamespacesCB on window.ajaxRcFormNamespacesCB Jdlrobson (talk) 20:45, 23 June 2020 (UTC)Reply

Return to "Gadget-ajaxrecentchanges.js" page.