Rm unused javascript added in r47637 (follow up to r47569) and not reverted with...
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 17 Dec 2010 16:04:01 +0000 (16:04 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 17 Dec 2010 16:04:01 +0000 (16:04 +0000)
resources/Resources.php
skins/common/changepassword.js [deleted file]

index 0ead557..ac78739 100644 (file)
@@ -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 (file)
index c8408cc..0000000
+++ /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 );