Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.history.js |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $histForm.append( $compareLink.clone() ); |
70 | 70 | } |
71 | 71 | |
72 | | - function updateCompare() { |
| 72 | + var updateCompare = function() { |
73 | 73 | var $radio = $histForm.find( 'input[type=radio]:checked' ); |
74 | 74 | var genLink = mw.config.get( 'wgScript' ) |
75 | 75 | + '?title=' + mw.util.wikiUrlencode( mw.config.get( 'wgPageName' ) ) |
Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | if ( !title ) { |
52 | 52 | return false; |
53 | 53 | } |
54 | | - escapedtitle = mw.html.escape( title ).replace( / /g, ' ' ); |
| 54 | + var escapedtitle = mw.html.escape( title ).replace( / /g, ' ' ); |
55 | 55 | this.addedTests.push( [ 'HEADER', escapedtitle, mw.test.numberOfHeader++ ] ); |
56 | 56 | this.$table.append( '<tr class="mw-mwutiltest-head" id="mw-mwutiltest-head'+mw.test.numberOfHeader+'"><th colspan="4">' + escapedtitle + '</th></tr>' ); |
57 | 57 | return true; |
— | — | @@ -403,14 +403,14 @@ |
404 | 404 | } |
405 | 405 | |
406 | 406 | exec = item[0]; |
407 | | - shouldreturn = item[1]; |
408 | | - shouldcontain = item[2]; |
| 407 | + var shouldreturn = item[1]; |
| 408 | + var shouldcontain = item[2]; |
409 | 409 | |
410 | 410 | numberOfTests++; |
411 | 411 | headNumberOfTests++; |
412 | | - doesReturn = eval( exec ); |
| 412 | + var doesReturn = eval( exec ); |
413 | 413 | doesReturn = doesReturn + ' (' + typeof doesReturn + ')'; |
414 | | - $thisrow = $testrows.eq( i - numberOfHeaders ); // since headers are rows as well |
| 414 | + var $thisrow = $testrows.eq( i - numberOfHeaders ); // since headers are rows as well |
415 | 415 | $thisrow.find( '> td' ).eq(2).html( mw.html.escape( doesReturn ).replace(/ /g, ' ' ) ); |
416 | 416 | |
417 | 417 | if ( doesReturn.indexOf( shouldcontain ) !== -1 ) { |
Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.upload.js |
— | — | @@ -83,6 +83,7 @@ |
84 | 84 | } |
85 | 85 | |
86 | 86 | img.onload = function() { |
| 87 | + var width, height, x, y, dx, dy; |
87 | 88 | // Fit the image within the previewSizexpreviewSize box |
88 | 89 | if ( img.width > img.height ) { |
89 | 90 | width = previewSize; |
Index: trunk/phase3/resources/mediawiki.special/mediawiki.special.preferences.js |
— | — | @@ -106,7 +106,8 @@ |
107 | 107 | var hoursToMinutes = function( hour ) { |
108 | 108 | var arr = hour.split( ':' ); |
109 | 109 | arr[0] = parseInt( arr[0], 10 ); |
110 | | - |
| 110 | + |
| 111 | + var minutes; |
111 | 112 | if ( arr.length == 1 ) { |
112 | 113 | // Specification is of the form [-]XX |
113 | 114 | minutes = arr[0] * 60; |
Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -1191,7 +1191,7 @@ |
1192 | 1192 | |
1193 | 1193 | /** HTML construction helper functions */ |
1194 | 1194 | this.html = new ( function () { |
1195 | | - function escapeCallback( s ) { |
| 1195 | + var escapeCallback = function( s ) { |
1196 | 1196 | switch ( s ) { |
1197 | 1197 | case "'": |
1198 | 1198 | return '''; |