r76602 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76601‎ | r76602 | r76603 >
Date:23:10, 12 November 2010
Author:krinkle
Status:ok
Tags:
Comment:
clean-up trailing spaces and tabs in js/css resources
Modified paths:
  • /trunk/phase3/resources/jquery/jquery.checkboxShiftClick.js (modified) (history)
  • /trunk/phase3/resources/mediawiki.advanced/mediawiki.advanced.rightclickedit.js (modified) (history)
  • /trunk/phase3/resources/mediawiki.language/mediawiki.language.js (modified) (history)
  • /trunk/phase3/resources/mediawiki.specials/mediawiki.specials.preferences.css (modified) (history)
  • /trunk/phase3/resources/mediawiki.specials/mediawiki.specials.preferences.js (modified) (history)
  • /trunk/phase3/resources/mediawiki/mediawiki.js (modified) (history)
  • /trunk/phase3/resources/mediawiki/mediawiki.log.js (modified) (history)

Diff [purge]

Index: trunk/phase3/resources/jquery/jquery.checkboxShiftClick.js
@@ -1,8 +1,8 @@
22 /**
33 * jQuery checkboxShiftClick
4 - *
 4+ *
55 * This will enable checkboxes to be checked or unchecked in a row by clicking one, holding shift and clicking another one
6 - *
 6+ *
77 * @author Krinkle <krinklemail@gmail.com>
88 * @license GPL v2
99 */
Index: trunk/phase3/resources/mediawiki/mediawiki.js
@@ -21,7 +21,7 @@
2222 return false;
2323 }
2424 for ( var i = 0; i < arrThis.length; i++ ) {
25 - if ( arrThis[i] instanceof Array ) {
 25+ if ( arrThis[i] instanceof Array ) {
2626 if ( !$.compareArray( arrThis[i], arrAgainst[i] ) ) {
2727 return false;
2828 }
@@ -39,35 +39,35 @@
4040
4141 // Attach to window
4242 window.mediaWiki = new ( function( $ ) {
43 -
 43+
4444 /* Constants */
45 -
 45+
4646 // This will not change until we are 100% ready to turn off legacy globals
4747 var LEGACY_GLOBALS = true;
48 -
 48+
4949 /* Private Members */
50 -
 50+
5151 // List of messages that have been requested to be loaded
5252 var messageQueue = {};
53 -
 53+
5454 /* Prototypes */
55 -
 55+
5656 /**
57 - * An object which allows single and multiple get/set/exists functionality
 57+ * An object which allows single and multiple get/set/exists functionality
5858 * on a list of key / value pairs.
59 - *
60 - * @param {boolean} global Whether to get/set/exists values on the window
 59+ *
 60+ * @param {boolean} global Whether to get/set/exists values on the window
6161 * object or a private object
6262 */
6363 function Map( global ) {
6464 this.values = ( global === true ) ? window : {};
6565 };
66 -
 66+
6767 /**
6868 * Gets the value of a key, or a list of key/value pairs for an array of keys.
69 - *
 69+ *
7070 * If called with no arguments, all values will be returned.
71 - *
 71+ *
7272 * @param {mixed} selection Key or array of keys to get values for
7373 * @param {mixed} fallback Value to use in case key(s) do not exist (optional)
7474 */
@@ -90,10 +90,10 @@
9191 }
9292 return this.values;
9393 };
94 -
 94+
9595 /**
9696 * Sets one or multiple key/value pairs.
97 - *
 97+ *
9898 * @param {mixed} selection Key or object of key/value pairs to set
9999 * @param {mixed} value Value to set (optional, only in use when key is a string)
100100 */
@@ -106,10 +106,10 @@
107107 this.values[selection] = value;
108108 }
109109 };
110 -
 110+
111111 /**
112112 * Checks if one or multiple keys exist.
113 - *
 113+ *
114114 * @param {mixed} key Key or array of keys to check
115115 * @return {boolean} Existence of key(s)
116116 */
@@ -125,9 +125,9 @@
126126 return selection in this.values;
127127 }
128128 };
129 -
 129+
130130 /**
131 - * Message object, similar to Message in PHP
 131+ * Message object, similar to Message in PHP
132132 */
133133 function Message( map, key, parameters ) {
134134 this.format = 'parse';
@@ -135,10 +135,10 @@
136136 this.key = key;
137137 this.parameters = typeof parameters === 'undefined' ? [] : $.makeArray( parameters );
138138 };
139 -
 139+
140140 /**
141141 * Appends parameters for replacement
142 - *
 142+ *
143143 * @param {mixed} args First in a list of variadic arguments to append as message parameters
144144 */
145145 Message.prototype.params = function( parameters ) {
@@ -147,10 +147,10 @@
148148 }
149149 return this;
150150 };
151 -
 151+
152152 /**
153153 * Converts message object to it's string form based on the state of format
154 - *
 154+ *
155155 * @return {string} String form of message
156156 */
157157 Message.prototype.toString = function() {
@@ -171,47 +171,47 @@
172172 */
173173 return text;
174174 };
175 -
 175+
176176 /**
177177 * Changes format to parse and converts message to string
178 - *
 178+ *
179179 * @return {string} String form of parsed message
180180 */
181181 Message.prototype.parse = function() {
182182 this.format = 'parse';
183183 return this.toString();
184184 };
185 -
 185+
186186 /**
187187 * Changes format to plain and converts message to string
188 - *
 188+ *
189189 * @return {string} String form of plain message
190190 */
191191 Message.prototype.plain = function() {
192192 this.format = 'plain';
193193 return this.toString();
194194 };
195 -
 195+
196196 /**
197197 * Checks if message exists
198 - *
 198+ *
199199 * @return {string} String form of parsed message
200200 */
201201 Message.prototype.exists = function() {
202202 return this.map.exists( this.key );
203203 };
204 -
 204+
205205 /**
206206 * User object
207207 */
208208 function User() {
209209 this.options = new Map();
210210 }
211 -
 211+
212212 /* Public Members */
213213
214214 /*
215 - * Dummy function which in debug mode can be replaced with a function that
 215+ * Dummy function which in debug mode can be replaced with a function that
216216 * does something clever
217217 */
218218 this.log = function() { };
@@ -227,17 +227,17 @@
228228 * Information about the current user
229229 */
230230 this.user = new User();
231 -
 231+
232232 /*
233233 * Localization system
234234 */
235235 this.messages = new Map();
236 -
 236+
237237 /* Public Methods */
238 -
 238+
239239 /**
240240 * Gets a message object, similar to wfMessage()
241 - *
 241+ *
242242 * @param {string} key Key of message to get
243243 * @param {mixed} params First argument in a list of variadic arguments, each a parameter for $
244244 * replacement
@@ -252,10 +252,10 @@
253253 }
254254 return new Message( mediaWiki.messages, key, parameters );
255255 };
256 -
 256+
257257 /**
258258 * Gets a message string, similar to wfMsg()
259 - *
 259+ *
260260 * @param {string} key Key of message to get
261261 * @param {mixed} params First argument in a list of variadic arguments, each a parameter for $
262262 * replacement
@@ -263,21 +263,21 @@
264264 this.msg = function( key, parameters ) {
265265 return mediaWiki.message.apply( mediaWiki.message, arguments ).toString();
266266 };
267 -
 267+
268268 /**
269269 * Client-side module loader which integrates with the MediaWiki ResourceLoader
270270 */
271271 this.loader = new ( function() {
272272
273273 /* Private Members */
274 -
 274+
275275 /**
276276 * Mapping of registered modules
277277 *
278 - * The jquery module is pre-registered, because it must have already
279 - * been provided for this object to have been built, and in debug mode
280 - * jquery would have been provided through a unique loader request,
281 - * making it impossible to hold back registration of jquery until after
 278+ * The jquery module is pre-registered, because it must have already
 279+ * been provided for this object to have been built, and in debug mode
 280+ * jquery would have been provided through a unique loader request,
 281+ * making it impossible to hold back registration of jquery until after
282282 * mediawiki.
283283 *
284284 * Format:
@@ -311,7 +311,7 @@
312312 return false;
313313 }
314314 for ( var i = 0; i < b.length; i++ ) {
315 - if ( $.isArray( a[i] ) ) {
 315+ if ( $.isArray( a[i] ) ) {
316316 if ( !compare( a[i], b[i] ) ) {
317317 return false;
318318 }
@@ -322,7 +322,7 @@
323323 }
324324 return true;
325325 };
326 -
 326+
327327 /**
328328 * Generates an ISO8601 "basic" string from a UNIX timestamp
329329 */
@@ -358,7 +358,7 @@
359359 if ( $.inArray( registry[module].dependencies[n], resolved ) === -1 ) {
360360 if ( $.inArray( registry[module].dependencies[n], unresolved ) !== -1 ) {
361361 throw new Error(
362 - 'Circular reference detected: ' + module +
 362+ 'Circular reference detected: ' + module +
363363 ' -> ' + registry[module].dependencies[n]
364364 );
365365 }
@@ -400,12 +400,12 @@
401401 };
402402
403403 /**
404 - * Narrows a list of module names down to those matching a specific
405 - * state. Possible states are 'undefined', 'registered', 'loading',
 404+ * Narrows a list of module names down to those matching a specific
 405+ * state. Possible states are 'undefined', 'registered', 'loading',
406406 * 'loaded', or 'ready'
407407 *
408408 * @param mixed string or array of strings of module states to filter by
409 - * @param array list of module names to filter (optional, all modules
 409+ * @param array list of module names to filter (optional, all modules
410410 * will be used by default)
411411 * @return array list of filtered module names
412412 */
@@ -465,11 +465,11 @@
466466 { type: "text/css" },
467467 new mediaWiki.html.Cdata( registry[module].style )
468468 ) );
469 - } else if ( typeof registry[module].style === 'object'
470 - && !( registry[module].style instanceof Array ) )
 469+ } else if ( typeof registry[module].style === 'object'
 470+ && !( registry[module].style instanceof Array ) )
471471 {
472472 for ( var media in registry[module].style ) {
473 - $( 'head' ).append( mediaWiki.html.element( 'style',
 473+ $( 'head' ).append( mediaWiki.html.element( 'style',
474474 { type: 'text/css', media: media },
475475 new mediaWiki.html.Cdata( registry[module].style[media] )
476476 ) );
@@ -486,8 +486,8 @@
487487 // Run jobs who's dependencies have just been met
488488 for ( var j = 0; j < jobs.length; j++ ) {
489489 if ( compare(
490 - filter( 'ready', jobs[j].dependencies ),
491 - jobs[j].dependencies ) )
 490+ filter( 'ready', jobs[j].dependencies ),
 491+ jobs[j].dependencies ) )
492492 {
493493 if ( typeof jobs[j].ready === 'function' ) {
494494 jobs[j].ready();
@@ -499,9 +499,9 @@
500500 // Execute modules who's dependencies have just been met
501501 for ( r in registry ) {
502502 if ( registry[r].state == 'loaded' ) {
503 - if ( compare(
504 - filter( ['ready'], registry[r].dependencies ),
505 - registry[r].dependencies ) )
 503+ if ( compare(
 504+ filter( ['ready'], registry[r].dependencies ),
 505+ registry[r].dependencies ) )
506506 {
507507 execute( r );
508508 }
@@ -525,7 +525,7 @@
526526 }
527527
528528 /**
529 - * Adds a dependencies to the queue with optional callbacks to be run
 529+ * Adds a dependencies to the queue with optional callbacks to be run
530530 * when the dependencies are ready or fail
531531 *
532532 * @param mixed string moulde name or array of string module names
@@ -538,7 +538,7 @@
539539 dependencies = [dependencies];
540540 if ( dependencies[0] in registry ) {
541541 for ( var n = 0; n < registry[dependencies[0]].dependencies.length; n++ ) {
542 - dependencies[dependencies.length] =
 542+ dependencies[dependencies.length] =
543543 registry[dependencies[0]].dependencies[n];
544544 }
545545 }
@@ -546,8 +546,8 @@
547547 // Add ready and error callbacks if they were given
548548 if ( arguments.length > 1 ) {
549549 jobs[jobs.length] = {
550 - 'dependencies': filter(
551 - ['undefined', 'registered', 'loading', 'loaded'],
 550+ 'dependencies': filter(
 551+ ['undefined', 'registered', 'loading', 'loaded'],
552552 dependencies ),
553553 'ready': ready,
554554 'error': error
@@ -602,7 +602,7 @@
603603 queue = [];
604604 // After document ready, handle the batch
605605 if ( !suspended && batch.length ) {
606 - // Always order modules alphabetically to help reduce cache
 606+ // Always order modules alphabetically to help reduce cache
607607 // misses for otherwise identical content
608608 batch.sort();
609609 // Build a list of request parameters
@@ -634,10 +634,10 @@
635635 { 'modules': groups[group].join( '|' ), 'version': formatVersionNumber( version ) }, base
636636 );
637637 }
638 - // Clear the batch - this MUST happen before we append the
639 - // script element to the body or it's possible that the script
640 - // will be locally cached, instantly load, and work the batch
641 - // again, all before we've cleared it causing each request to
 638+ // Clear the batch - this MUST happen before we append the
 639+ // script element to the body or it's possible that the script
 640+ // will be locally cached, instantly load, and work the batch
 641+ // again, all before we've cleared it causing each request to
642642 // include modules which are already loaded
643643 batch = [];
644644 // Asynchronously append a script tag to the end of the body
@@ -647,7 +647,7 @@
648648 requests[r] = sortQuery( requests[r] );
649649 // Build out the HTML
650650 var src = mediaWiki.config.get( 'wgLoadScript' ) + '?' + $.param( requests[r] );
651 - html += mediaWiki.html.element( 'script',
 651+ html += mediaWiki.html.element( 'script',
652652 { type: 'text/javascript', src: src }, '' );
653653 }
654654 return html;
@@ -662,7 +662,7 @@
663663 };
664664
665665 /**
666 - * Registers a module, letting the system know about it and its
 666+ * Registers a module, letting the system know about it and its
667667 * dependencies. loader.js files contain calls to this function.
668668 */
669669 this.register = function( module, version, dependencies, group ) {
@@ -695,15 +695,15 @@
696696 // Allow dependencies to be given as a single module name
697697 registry[module].dependencies = [dependencies];
698698 } else if ( typeof dependencies === 'object' || typeof dependencies === 'function' ) {
699 - // Allow dependencies to be given as an array of module names
 699+ // Allow dependencies to be given as an array of module names
700700 // or a function which returns an array
701701 registry[module].dependencies = dependencies;
702702 }
703703 };
704704
705705 /**
706 - * Implements a module, giving the system a course of action to take
707 - * upon loading. Results of a request for one or more modules contain
 706+ * Implements a module, giving the system a course of action to take
 707+ * upon loading. Results of a request for one or more modules contain
708708 * calls to this function.
709709 */
710710 this.implement = function( module, script, style, localization ) {
@@ -715,19 +715,19 @@
716716 if ( typeof script !== 'function' ) {
717717 throw new Error( 'script must be a function, not a ' + typeof script );
718718 }
719 - if ( typeof style !== 'undefined'
720 - && typeof style !== 'string'
721 - && typeof style !== 'object' )
 719+ if ( typeof style !== 'undefined'
 720+ && typeof style !== 'string'
 721+ && typeof style !== 'object' )
722722 {
723723 throw new Error( 'style must be a string or object, not a ' + typeof style );
724724 }
725 - if ( typeof localization !== 'undefined'
726 - && typeof localization !== 'object' )
 725+ if ( typeof localization !== 'undefined'
 726+ && typeof localization !== 'object' )
727727 {
728728 throw new Error( 'localization must be an object, not a ' + typeof localization );
729729 }
730 - if ( typeof registry[module] !== 'undefined'
731 - && typeof registry[module].script !== 'undefined' )
 730+ if ( typeof registry[module] !== 'undefined'
 731+ && typeof registry[module].script !== 'undefined' )
732732 {
733733 throw new Error( 'module already implemeneted: ' + module );
734734 }
@@ -735,8 +735,8 @@
736736 registry[module].state = 'loaded';
737737 // Attach components
738738 registry[module].script = script;
739 - if ( typeof style === 'string'
740 - || typeof style === 'object' && !( style instanceof Array ) )
 739+ if ( typeof style === 'string'
 740+ || typeof style === 'object' && !( style instanceof Array ) )
741741 {
742742 registry[module].style = style;
743743 }
@@ -744,9 +744,9 @@
745745 registry[module].messages = localization;
746746 }
747747 // Execute or queue callback
748 - if ( compare(
749 - filter( ['ready'], registry[module].dependencies ),
750 - registry[module].dependencies ) )
 748+ if ( compare(
 749+ filter( ['ready'], registry[module].dependencies ),
 750+ registry[module].dependencies ) )
751751 {
752752 execute( module );
753753 } else {
@@ -757,7 +757,7 @@
758758 /**
759759 * Executes a function as soon as one or more required modules are ready
760760 *
761 - * @param mixed string or array of strings of modules names the callback
 761+ * @param mixed string or array of strings of modules names the callback
762762 * dependencies to be ready before
763763 * executing
764764 * @param function callback to execute when all dependencies are ready (optional)
@@ -766,7 +766,7 @@
767767 this.using = function( dependencies, ready, error ) {
768768 // Validate input
769769 if ( typeof dependencies !== 'object' && typeof dependencies !== 'string' ) {
770 - throw new Error( 'dependencies must be a string or an array, not a ' +
 770+ throw new Error( 'dependencies must be a string or an array, not a ' +
771771 typeof dependencies )
772772 }
773773 // Allow calling with a single dependency as a string
@@ -796,24 +796,24 @@
797797 /**
798798 * Loads an external script or one or more modules for future use
799799 *
800 - * @param {mixed} modules either the name of a module, array of modules,
 800+ * @param {mixed} modules either the name of a module, array of modules,
801801 * or a URL of an external script or style
802 - * @param {string} type mime-type to use if calling with a URL of an
803 - * external script or style; acceptable values are "text/css" and
804 - * "text/javascript"; if no type is provided, text/javascript is
 802+ * @param {string} type mime-type to use if calling with a URL of an
 803+ * external script or style; acceptable values are "text/css" and
 804+ * "text/javascript"; if no type is provided, text/javascript is
805805 * assumed
806806 */
807807 this.load = function( modules, type ) {
808808 // Validate input
809809 if ( typeof modules !== 'object' && typeof modules !== 'string' ) {
810 - throw new Error( 'dependencies must be a string or an array, not a ' +
 810+ throw new Error( 'dependencies must be a string or an array, not a ' +
811811 typeof dependencies )
812812 }
813813 // Allow calling with an external script or single dependency as a string
814814 if ( typeof modules === 'string' ) {
815815 // Support adding arbitrary external scripts
816 - if ( modules.substr( 0, 7 ) == 'http://'
817 - || modules.substr( 0, 8 ) == 'https://' )
 816+ if ( modules.substr( 0, 7 ) == 'http://'
 817+ || modules.substr( 0, 8 ) == 'https://' )
818818 {
819819 if ( type === 'text/css' ) {
820820 $( 'head' )
@@ -821,7 +821,7 @@
822822 .attr( 'href', modules ) );
823823 return true;
824824 } else if ( type === 'text/javascript' || typeof type === 'undefined' ) {
825 - var script = mediaWiki.html.element( 'script',
 825+ var script = mediaWiki.html.element( 'script',
826826 { type: 'text/javascript', src: modules }, '' );
827827 if ( ready ) {
828828 $( 'body' ).append( script );
@@ -923,7 +923,7 @@
924924 };
925925
926926 /**
927 - * Wrapper object for raw HTML passed to mediaWiki.html.element().
 927+ * Wrapper object for raw HTML passed to mediaWiki.html.element().
928928 */
929929 this.Raw = function( value ) {
930930 this.value = value;
@@ -945,13 +945,13 @@
946946 * - string: The string is escaped.
947947 * - null or undefined: The short closing form is used, e.g. <br/>.
948948 * - this.Raw: The value attribute is included without escaping.
949 - * - this.Cdata: The value attribute is included, and an exception is
950 - * thrown if it contains an illegal ETAGO delimiter.
 949+ * - this.Cdata: The value attribute is included, and an exception is
 950+ * thrown if it contains an illegal ETAGO delimiter.
951951 * See http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.3.2
952952 *
953953 * Example:
954954 * var h = mediaWiki.html;
955 - * return h.element( 'div', {},
 955+ * return h.element( 'div', {},
956956 * new h.Raw( h.element( 'img', {src: '<'} ) ) );
957957 * Returns <div><img src="&lt;"/></div>
958958 */
Index: trunk/phase3/resources/mediawiki/mediawiki.log.js
@@ -6,7 +6,7 @@
77
88 /**
99 * Log output to the console.
10 - *
 10+ *
1111 * In the case that the browser does not have a console available, one is created by appending a
1212 * <div> element to the bottom of the body and then appending a <div> element to that for each
1313 * message.
@@ -16,9 +16,9 @@
1717 * @param {string} string Message to output to console
1818 */
1919 mediaWiki.log = function( string ) {
20 - // Allow log messages to use a configured prefix
 20+ // Allow log messages to use a configured prefix
2121 if ( mw.config.exists( 'mw.log.prefix' ) ) {
22 - string = mw.config.get( 'mw.log.prefix' ) + '> ' + string;
 22+ string = mw.config.get( 'mw.log.prefix' ) + '> ' + string;
2323 }
2424 // Try to use an existing console
2525 if ( typeof window.console !== 'undefined' && typeof window.console.log == 'function' ) {
Index: trunk/phase3/resources/mediawiki.language/mediawiki.language.js
@@ -1,16 +1,16 @@
22 /**
33 * Base language object
4 - *
5 - * Localized Language support attempts to mirror some of the functionality of
6 - * Language.php in MediaWiki. This object contains methods for loading and
 4+ *
 5+ * Localized Language support attempts to mirror some of the functionality of
 6+ * Language.php in MediaWiki. This object contains methods for loading and
77 * transforming message text.
88 */
99
1010 mediaWiki.language = {
1111 /**
12 - * Process the PLURAL template substitution
13 - *
14 - * @param {object} template Template object
 12+ * Process the PLURAL template substitution
 13+ *
 14+ * @param {object} template Template object
1515 * @format template
1616 * {
1717 * 'title': [title of template],
@@ -26,7 +26,7 @@
2727 }
2828 // Restore the count into a Number ( if it got converted earlier )
2929 var count = mediaWiki.language.convertNumber( template.title, true );
30 - // Do convertPlural call
 30+ // Do convertPlural call
3131 return mediaWiki.language.convertPlural( parseInt( count ), template.parameters );
3232 }
3333 // Could not process plural return first form or nothing
@@ -37,20 +37,20 @@
3838 },
3939 /**
4040 * Plural form transformations, needed for some languages.
41 - *
 41+ *
4242 * @param {integer} count Non-localized quantifier
4343 * @param {array} forms List of plural forms
4444 * @return {string} Correct form for quantifier in this language
4545 */
4646 'convertPlural': function( count, forms ){
4747 if ( !forms || forms.length == 0 ) {
48 - return '';
 48+ return '';
4949 }
5050 return ( parseInt( count ) == 1 ) ? forms[0] : forms[1];
5151 },
5252 /**
5353 * Pads an array to a specific length by copying the last one element.
54 - *
 54+ *
5555 * @param {array} forms Number of forms given to convertPlural
5656 * @param {integer} count Number of forms required
5757 * @return {array} Padded array of forms
@@ -58,12 +58,12 @@
5959 'preConvertPlural': function( forms, count ) {
6060 while ( forms.length < count ) {
6161 forms.push( forms[ forms.length-1 ] );
62 - }
 62+ }
6363 return forms;
6464 },
6565 /**
6666 * Converts a number using digitTransformTable.
67 - *
 67+ *
6868 * @param {number} number Value to be converted
6969 * @param {boolean} integer Convert the return value to an integer
7070 */
@@ -71,7 +71,7 @@
7272 if ( !mediaWiki.language.digitTransformTable ) {
7373 return number;
7474 }
75 - // Set the target Transform table:
 75+ // Set the target Transform table:
7676 var transformTable = mediaWiki.language.digitTransformTable;
7777 // Check if the "restore" to Latin number flag is set:
7878 if ( integer ) {
Index: trunk/phase3/resources/mediawiki.specials/mediawiki.specials.preferences.js
@@ -88,9 +88,9 @@
8989 "`" / "{" /
9090 "|" / "}" /
9191 "~"
92 - */
 92+ */
9393 var rfc5322_atext = "a-z0-9!#$%&'*+-/=?^_`{|}—~" ;
94 -
 94+
9595 /**
9696 * Next define the RFC 1034 'ldh-str'
9797 * <domain> ::= <subdomain> | " "
@@ -112,7 +112,7 @@
113113 // "apostrophe"
114114 '@'
115115 +
116 - // Domain first part
 116+ // Domain first part
117117 '[' + rfc1034_ldh_str + ']+'
118118 +
119119 // Second part and following are separated by a dot
Index: trunk/phase3/resources/mediawiki.specials/mediawiki.specials.preferences.css
@@ -1,5 +1,5 @@
22 #mw-emailaddress-validity {
3 - padding: 2px 1em;
 3+ padding: 2px 1em;
44 }
55 body.ltr #mw-emailaddress-validity {
66 border-bottom-right-radius:0.8em;
Index: trunk/phase3/resources/mediawiki.advanced/mediawiki.advanced.rightclickedit.js
@@ -4,11 +4,11 @@
55 $( function() {
66
77 // Select all h1-h6 elements that contain editsection links
8 - $('h1:has(.editsection a), ' +
9 - 'h2:has(.editsection a), ' +
10 - 'h3:has(.editsection a), ' +
11 - 'h4:has(.editsection a), ' +
12 - 'h5:has(.editsection a), ' +
 8+ $('h1:has(.editsection a), ' +
 9+ 'h2:has(.editsection a), ' +
 10+ 'h3:has(.editsection a), ' +
 11+ 'h4:has(.editsection a), ' +
 12+ 'h5:has(.editsection a), ' +
1313 'h6:has(.editsection a)'
1414 ).live( 'contextmenu', function( e ) {
1515 // Get href of the [edit] link

Status & tagging log