r47639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47638‎ | r47639 | r47640 >
Date:22:31, 21 February 2009
Author:demon
Status:ok
Tags:
Comment:
Set eol-style and somehow duplicated content wtf?
Modified paths:
  • /trunk/phase3/skins/common/changepassword.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/changepassword.js
@@ -1,32 +1,16 @@
2 -
3 -function onNameChange() {
4 - if ( wgUserName != document.getElementById('wpName').value ) {
5 - document.getElementById('wpPassword').disabled = true;
6 - document.getElementById('wpComment').disabled = false;
7 - } else {
8 - document.getElementById('wpPassword').disabled = false;
9 - document.getElementById('wpComment').disabled = true;
10 - }
11 -}
12 -
13 -function onNameChangeHook() {
14 - document.getElementById( 'wpName' ).onblur = onNameChange;
15 -}
16 -
17 -addOnloadHook( onNameChangeHook );
18 -
19 -function onNameChange() {
20 - if ( wgUserName != document.getElementById('wpName').value ) {
21 - document.getElementById('wpPassword').disabled = true;
22 - document.getElementById('wpComment').disabled = false;
23 - } else {
24 - document.getElementById('wpPassword').disabled = false;
25 - document.getElementById('wpComment').disabled = true;
26 - }
27 -}
28 -
29 -function onNameChangeHook() {
30 - document.getElementById( 'wpName' ).onblur = onNameChange;
31 -}
32 -
33 -addOnloadHook( onNameChangeHook );
 2+
 3+function onNameChange() {
 4+ if ( wgUserName != document.getElementById('wpName').value ) {
 5+ document.getElementById('wpPassword').disabled = true;
 6+ document.getElementById('wpComment').disabled = false;
 7+ } else {
 8+ document.getElementById('wpPassword').disabled = false;
 9+ document.getElementById('wpComment').disabled = true;
 10+ }
 11+}
 12+
 13+function onNameChangeHook() {
 14+ document.getElementById( 'wpName' ).onblur = onNameChange;
 15+}
 16+
 17+addOnloadHook( onNameChangeHook );
Property changes on: trunk/phase3/skins/common/changepassword.js
___________________________________________________________________
Name: svn:eol-style
3418 + native

Status & tagging log