mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 03:35:58 +00:00
40bb0c72b5
- Leaked globals - Strict comparison to 0, false and '' - Missing semicolon - Variable name collision - Minor improvements in caching (in a few places "var $that" cached $(this), but wasn't actually used) - Replace calls to deprecated $j with $ - Checking undefined by strictly comparing references instead of a string comparison and typeof (speed) (see bug 29106)
9 lines
172 B
JavaScript
9 lines
172 B
JavaScript
/*
|
|
* JavaScript for WikiEditor Publish module
|
|
*/
|
|
|
|
$( document ).ready( function() {
|
|
// Add publish module
|
|
$( '#wpTextbox1' ).wikiEditor( 'addModule', 'publish' );
|
|
} );
|