ResourceLoader/Legacy JavaScript

From MediaWiki.org
ResourceLoader(Redirected from RL/JD)
Jump to: navigation, search

Other languages:
English • ‎español • ‎日本語
shortcut: RL/JD

This page documents deprecated identifiers that will be removed from mediawiki eventually (see bug 33836). Their replacements are in the "Replaced by" columns below. Also see the ResourceLoader migration guides for extension developers and for users. All replacements and some new modules are available as-is since 1.17. Please use the modern replacements for new code and rewrite old code immediately. If you encounter no replacement and believe there should be one, please Let us know!

Please note the current implementation in Git may differ from the latest stable release and what might eventually be included with mediawiki. Any code relying on details obtained from Git may break.

Toggle grep script

Deprecated identifiers in source code files can be found by using Unix style commands such as:

 grep -n -f deprecated.ids *.js

where deprecated.ids is a text file created from the list page. Make sure to remove any blank lines at the end of the file. Note: Automatic replaces are not recommended because some identifier names are potentially part of another (non-deprecated or custom) identifier, for example addPortletLink and mw.util.addPortletLink, or 'ta' and 'var = takeMyCustomVariable'.

ajax.js[edit | edit source]

ajaxwatch.js[edit | edit source]

block.js[edit | edit source]

changepassword.js[edit | edit source]

Identifier Type Replaced by
onNameChange function None/Removed
onNameChangeHook function

edit.js[edit | edit source]

The toolbar interfaces will likely migrate into an extension. The default bundle would include the Extension:WikiEditor, which already has an advanced API that replaces all of this.

enhancedchanges.js[edit | edit source]

Identifier Type Replaced by
toggleVisibility function None/Removed

history.js[edit | edit source]

htmlform.js[edit | edit source]

Identifier Type Replaced by
htmlforms object None/Removed

IEFixes.js[edit | edit source]

Identifier Type Replaced by
doneIETransform object None of these should ever be used by anyone. :)
doneIEAlphaFix object
expandedURLs object
hookit function
fixalpha function
relativeforfloats function
setrelative function
onbeforeprint function
onafterprint function

metadata.js[edit | edit source]

Identifier Type Replaced by
attachMetadataToggle function No public functions

mwsuggest.js[edit | edit source]

prefs.js[edit | edit source]

preview.js[edit | edit source]

protect.js[edit | edit source]

Identifier Type Replaced by
ProtectionForm object

rightclickedit.js[edit | edit source]

search.js[edit | edit source]

upload.js[edit | edit source]

Identifier Type Replaced by
wgUploadWarningObj object

mediawiki.special.upload.js

wgUploadLicenseObj object
licenseSelectorCheck function
wgUploadSetup function
toggleUploadInputs function
fillDestFilename function
toggleFilenameFiller function

wikibits.js[edit | edit source]


ResourceLoaderResourceLoader
Documentation FeaturesResourceLoader/Features · VocabularyResourceLoader/Vocabulary · Migration guide (users)ResourceLoader/Migration guide (users) · Migration guide (developers)ResourceLoader/Migration guide for extension developers · Developing with ResourceLoaderResourceLoader/Developing with ResourceLoader · Core modulesResourceLoader/Modules · Mobile supportResourceLoader/Writing a MobileFrontend friendly ResourceLoader module
Project information Status updatesResourceLoader/status · Version 1 Design SpecificationResourceLoader/Version 1 Design Specification (tasksResourceLoader/V1 Task management) · Version 2 Design SpecificationResourceLoader/Version 2 Design Specification (tasksResourceLoader/V2 Task management) · RequirementsResourceLoader/Requirements
Other JavaScript DeprecationsResourceLoader/Legacy JavaScript