Index: branches/resourceloader/phase3/resources/mediawiki/legacy/mediawiki.legacy.ajax.js |
— | — | @@ -9,7 +9,6 @@ |
10 | 10 | ( function( $, mw ) { |
11 | 11 | |
12 | 12 | /* Extension */ |
13 | | - |
14 | 13 | $.extend( true, mw.legacy, { |
15 | 14 | |
16 | 15 | /* Global Variables */ |
Index: branches/resourceloader/phase3/resources/mediawiki/legacy/mediawiki.legacy.edit.js |
— | — | @@ -39,8 +39,8 @@ |
40 | 40 | 'width': 23, |
41 | 41 | 'height': 22, |
42 | 42 | 'class': 'mw-toolbar-editbutton', |
43 | | - 'id': item.imageId ? item.imageId : null, |
44 | | - 'src': = item.imageFile, |
| 43 | + 'id': ( item.imageId ? item.imageId : null ), |
| 44 | + 'src': item.imageFile, |
45 | 45 | 'border': 0, |
46 | 46 | 'alt': item.speedTip, |
47 | 47 | 'title': item.speedTip |
— | — | @@ -102,13 +102,13 @@ |
103 | 103 | typeof $.fn.textSelection != 'undefined' && |
104 | 104 | ( $currentFocused.name().toLowerCase() == 'iframe' || $currentFocused.attr( 'id' ) == 'wpTextbox1' ) |
105 | 105 | ) { |
106 | | - $j( '#wpTextbox1' ).textSelection( |
| 106 | + $( '#wpTextbox1' ).textSelection( |
107 | 107 | 'encapsulateSelection', { 'pre': tagOpen, 'peri': sampleText, 'post': tagClose } |
108 | 108 | ); |
109 | 109 | return; |
110 | 110 | } |
111 | 111 | var $textarea; |
112 | | - if ( $( 'form[name=editform]' ) { |
| 112 | + if ( $( 'form[name=editform]' ) ) { |
113 | 113 | $textarea = $currentFocused; |
114 | 114 | } else { |
115 | 115 | // Some alternate form? take the first one we can find |
— | — | @@ -220,9 +220,9 @@ |
221 | 221 | } ); |
222 | 222 | // HACK: make currentFocused work with the usability iframe - with proper focus detection support (HTML 5!) this'll |
223 | 223 | // be much cleaner |
224 | | - var $iframe = $j( '.wikiEditor-ui-text iframe' ); |
| 224 | + var $iframe = $( '.wikiEditor-ui-text iframe' ); |
225 | 225 | if ( $iframe.length > 0 ) { |
226 | | - $j( $iframe.get( 0 ).contentWindow.document ) |
| 226 | + $( $iframe.get( 0 ).contentWindow.document ) |
227 | 227 | // For IE |
228 | 228 | .add( $iframe.get( 0 ).contentWindow.document.body ) |
229 | 229 | .focus( function() { mw.legacy.currentFocused = $iframe.get( 0 ); } ); |