Index: trunk/extensions/UploadWizard/resources/mw.Api.js |
— | — | @@ -47,8 +47,7 @@ |
48 | 48 | |
49 | 49 | // caller can supply handlers for http transport error or api errors |
50 | 50 | err: function( code, result ) { |
51 | | - var errorMsg = "mw.Api error: " + code; |
52 | | - mw.log( _method + errorMsg ); |
| 51 | + mw.log( "mw.Api error: " + code, 'debug' ); |
53 | 52 | }, |
54 | 53 | |
55 | 54 | timeout: 30000, /* 30 seconds */ |
— | — | @@ -129,6 +128,7 @@ |
130 | 129 | ajaxOptions.err( 'http', { xhr: xhr, textStatus: textStatus, exception: exception } ); |
131 | 130 | }; |
132 | 131 | |
| 132 | + |
133 | 133 | /* success just means 200 OK; also check for output and API errors */ |
134 | 134 | ajaxOptions.success = function( result ) { |
135 | 135 | if ( mw.isEmpty( result ) ) { |