'scripts' => 'skins/common/block.js',
'dependencies' => 'mediawiki.legacy.wikibits',
),
- 'mediawiki.legacy.changepassword' => array(
- 'scripts' => 'skins/common/changepassword.js',
- 'dependencies' => 'mediawiki.legacy.wikibits',
- ),
'mediawiki.legacy.commonPrint' => array(
'styles' => array( 'skins/common/commonPrint.css' => array( 'media' => 'print' ) ),
),
+++ /dev/null
-
-window.onNameChange = function() {
- if ( wgUserName == document.getElementById('wpName').value ) {
- document.getElementById('wpPassword').disabled = false;
- document.getElementById('wpComment').disabled = true;
- } else {
- document.getElementById('wpPassword').disabled = true;
- document.getElementById('wpComment').disabled = false;
- }
-};
-
-window.onNameChangeHook = function() {
- document.getElementById( 'wpName' ).onblur = onNameChange;
-};
-
-addOnloadHook( onNameChangeHook );