From 4e8c3fcc1aed02a9935e977d523de22be9058e2b Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Fri, 17 Dec 2010 16:04:01 +0000 Subject: [PATCH] Rm unused javascript added in r47637 (follow up to r47569) and not reverted with the rest of it in r48780. --- resources/Resources.php | 4 ---- skins/common/changepassword.js | 16 ---------------- 2 files changed, 20 deletions(-) delete mode 100644 skins/common/changepassword.js diff --git a/resources/Resources.php b/resources/Resources.php index 0ead557157..ac787393cb 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -416,10 +416,6 @@ return array( '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' ) ), ), diff --git a/skins/common/changepassword.js b/skins/common/changepassword.js deleted file mode 100644 index c8408cc0ea..0000000000 --- a/skins/common/changepassword.js +++ /dev/null @@ -1,16 +0,0 @@ - -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 ); -- 2.20.1