From: Mark A. Hershberger Date: Fri, 4 Nov 2011 13:08:44 +0000 (+0000) Subject: eol w/s X-Git-Tag: 1.31.0-rc.0~26704 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=cf4df9b17e8be84912a5bd6c0434522c3a7a0a2f;p=lhc%2Fweb%2Fwiklou.git eol w/s --- diff --git a/resources/mediawiki.action/mediawiki.action.edit.js b/resources/mediawiki.action/mediawiki.action.edit.js index da9fce0917..2e670fb6be 100644 --- a/resources/mediawiki.action/mediawiki.action.edit.js +++ b/resources/mediawiki.action/mediawiki.action.edit.js @@ -1,11 +1,11 @@ (function( $ ) { // currentFocus is used to determine where to insert tags var currentFocused = $( '#wpTextbox1' ); - + mw.toolbar = { $toolbar : $( '#toolbar' ), buttons : [], - // If you want to add buttons, use + // If you want to add buttons, use // mw.toolbar.addButton( imageFile, speedTip, tagOpen, tagClose, sampleText, imageId, selectText ); addButton : function() { this.buttons.push( [].slice.call( arguments ) ); @@ -36,7 +36,7 @@ 'encapsulateSelection', { 'pre': tagOpen, 'peri': sampleText, 'post': tagClose } ); } - }, + }, init : function() { // Legacy // Merge buttons from mwCustomEditButtons @@ -61,7 +61,7 @@ //make sure edit summary does not exceed byte limit $( '#wpSummary' ).byteLimit( 250 ); - + $( document ).ready( function() { /** * Restore the edit box scroll state following a preview operation, @@ -81,10 +81,10 @@ } }; scrollEditBox(); - + // Create button bar mw.toolbar.init(); - + $( '#wpSummary, #wpTextbox1' ).focus( function() { currentFocused = $(this); });