r58600 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58599‎ | r58600 | r58601 >
Date:19:45, 5 November 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Finished renaming some things.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js
@@ -13,8 +13,8 @@
1414 if ( $j.wikiEditor != undefined && $j.wikiEditor.isSupported() || !$j.wikiEditor.isSupportKnown() ) {
1515 // Remove the old toolbar
1616 $j( '#toolbar' ).remove();
17 - // Build a wikiEditor around the textarea
18 - $j( 'textarea#wpTextbox1' ).wikiEditor( {
 17+// Add toolbar module
 18+$j( '#wpTextbox1' ).wikiEditor( 'addModule', {
1919
2020 'toolbar': {
2121 // Main section
@@ -849,9 +849,11 @@
850850 // All of these are potentially valid titles, and the latter three
851851 // categories match about 6300 titles in enwiki's ns0. Out of 6.9M
852852 // titles, that's 0.09%
853 - if ( typeof arguments.callee.regex == 'undefined' )
 853+ if ( typeof arguments.callee.regex == 'undefined' ) {
854854 // Cache the regex
855 - arguments.callee.regex = new RegExp( "(^(" + urlprotocols + "))|(^www\\.)|([^.]\\.[a-z]{2,}($|\\/))", 'i');
 855+ arguments.callee.regex =
 856+ new RegExp( "(^(" + urlprotocols + "))|(^www\\.)|([^.]\\.[a-z]{2,}($|\\/))", 'i');
 857+ }
856858 return s.match( arguments.callee.regex );
857859 }
858860 // Updates the UI to show if the page title being inputed by the user exists or not
@@ -1557,6 +1559,7 @@
15581560 }
15591561 }
15601562 }
1561 -}
 1563+} } );
15621564
1563 -} ); } } );
 1565+} } );
 1566+

Status & tagging log