Index: trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js |
— | — | @@ -1,11 +1,11 @@ |
2 | 2 | (function( $ ) { |
3 | 3 | // currentFocus is used to determine where to insert tags |
4 | 4 | var currentFocused = $( '#wpTextbox1' ); |
5 | | - |
| 5 | + |
6 | 6 | mw.toolbar = { |
7 | 7 | $toolbar : $( '#toolbar' ), |
8 | 8 | buttons : [], |
9 | | - // If you want to add buttons, use |
| 9 | + // If you want to add buttons, use |
10 | 10 | // mw.toolbar.addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId, selectText ); |
11 | 11 | addButton : function() { |
12 | 12 | this.buttons.push( [].slice.call( arguments ) ); |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | 'encapsulateSelection', { 'pre': tagOpen, 'peri': sampleText, 'post': tagClose } |
38 | 38 | ); |
39 | 39 | } |
40 | | - }, |
| 40 | + }, |
41 | 41 | init : function() { |
42 | 42 | // Legacy |
43 | 43 | // Merge buttons from mwCustomEditButtons |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | |
63 | 63 | //make sure edit summary does not exceed byte limit |
64 | 64 | $( '#wpSummary' ).byteLimit( 250 ); |
65 | | - |
| 65 | + |
66 | 66 | $( document ).ready( function() { |
67 | 67 | /** |
68 | 68 | * Restore the edit box scroll state following a preview operation, |
— | — | @@ -81,10 +81,10 @@ |
82 | 82 | } |
83 | 83 | }; |
84 | 84 | scrollEditBox(); |
85 | | - |
| 85 | + |
86 | 86 | // Create button bar |
87 | 87 | mw.toolbar.init(); |
88 | | - |
| 88 | + |
89 | 89 | $( '#wpSummary, #wpTextbox1' ).focus( function() { |
90 | 90 | currentFocused = $(this); |
91 | 91 | }); |