Index: trunk/extensions/SignupAPI/includes/verification.js |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | $.ajax({ |
8 | 8 | type: "POST", |
9 | 9 | url: mw.util.wikiScript('api'), |
10 | | - data: "action=validatesignup&format=json&field="+fieldtype+"&inputVal="+inputVal, |
| 10 | + data: {'action':'validatesignup', 'format':'json', 'field':fieldtype, 'inputVal':inputVal }, |
11 | 11 | dataType: 'json', |
12 | 12 | success: function( jsondata ){ |
13 | 13 | var image = "<img src='"+ imagePath + jsondata.signup.icon +"'>"; |
— | — | @@ -53,8 +53,7 @@ |
54 | 54 | if ( pass==retype ) { |
55 | 55 | image = "<img src='"+ imagePath +"MW-Icon-CheckMark.png'>"; |
56 | 56 | message = mw.message( 'signupapi-passwordsmatch' ); |
57 | | - } |
58 | | - else { |
| 57 | + }else { |
59 | 58 | image = "<img src='"+ imagePath +"MW-Icon-NoMark.png'>"; |
60 | 59 | message = mw.message( 'badretype' ); |
61 | 60 | } |
— | — | @@ -71,10 +70,7 @@ |
72 | 71 | $('#wpRetype').after('<span id="wpRetypeval" class="wpRetypeval"></span>'); |
73 | 72 | $('#wpEmail').after('<span id="wpEmailval" class="wpEmailval"></span>'); |
74 | 73 | |
75 | | -mw.loader.using( 'ext.SignupAPI', function() { |
76 | | - $("#progress").progressbar(); |
77 | | - } ); |
78 | | - |
| 74 | +$("#progress").progressbar(); |
79 | 75 | console.log(); |
80 | 76 | $('div.ui-progressbar').css('background','#F2F5F7'); |
81 | 77 | |