https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101989
Revision: 101989
Author: mah
Date: 2011-11-04 13:08:44 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
eol w/s
Modified Paths:
--------------
trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js
Modified: trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js
===================================================================
--- trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js
2011-11-04 12:43:11 UTC (rev 101988)
+++ trunk/phase3/resources/mediawiki.action/mediawiki.action.edit.js
2011-11-04 13:08:44 UTC (rev 101989)
@@ -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);
});
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs