From: Happy-melon Date: Fri, 17 Dec 2010 16:04:01 +0000 (+0000) Subject: Rm unused javascript added in r47637 (follow up to r47569) and not reverted with... X-Git-Tag: 1.31.0-rc.0~33251 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=4e8c3fcc1aed02a9935e977d523de22be9058e2b;p=lhc%2Fweb%2Fwiklou.git Rm unused javascript added in r47637 (follow up to r47569) and not reverted with the rest of it in r48780. --- 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 );