Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -1,19 +1,19 @@ |
2 | | -/* |
| 2 | +/** |
3 | 3 | * Utilities |
4 | 4 | */ |
5 | 5 | |
6 | | -(function ($, mw) { |
| 6 | +(function($, mw) { |
7 | 7 | |
8 | 8 | mw.util = { |
9 | 9 | |
10 | 10 | /* Initialisation */ |
11 | 11 | 'initialised' : false, |
12 | | - 'init' : function () { |
| 12 | + 'init' : function() { |
13 | 13 | if ( this.initialised === false ) { |
14 | 14 | this.initialised = true; |
15 | 15 | |
16 | 16 | // Any initialisation after the DOM is ready |
17 | | - $(function () { |
| 17 | + $(function() { |
18 | 18 | |
19 | 19 | // Shortcut to client profile return |
20 | 20 | var profile = $.client.profile(); |
— | — | @@ -374,12 +374,12 @@ |
375 | 375 | /** |
376 | 376 | * Add a little box at the top of the screen to inform the user of |
377 | 377 | * something, replacing any previous message. |
| 378 | + * Calling with no arguments, with an empty string or null will hide the message |
378 | 379 | * |
379 | | - * @param message mixed The DOM-element or HTML-string to be put inside the message box] |
380 | | - * Calling with no arguments, with an empty string or null will hide the message |
381 | | - * @param className string Used in adding a class; should be different for each |
382 | | - * call to allow CSS/JS to hide different boxes. null = no class used. |
383 | | - * @return Boolean True on success, false on failure |
| 380 | + * @param message mixed The DOM-element or HTML-string to be put inside the message box. |
| 381 | + * @param className string Used in adding a class; should be different for each call |
| 382 | + * to allow CSS/JS to hide different boxes. null = no class used. |
| 383 | + * @return boolean True on success, false on failure |
384 | 384 | */ |
385 | 385 | 'jsMessage' : function( message, className ) { |
386 | 386 | |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | * according to HTML5 specification. Please note the specification |
425 | 425 | * does not validate a domain with one character. |
426 | 426 | * |
427 | | - * FIXME: should be moved to a JavaScript validation module. |
| 427 | + * FIXME: should be moved to or replaced by a JavaScript validation module. |
428 | 428 | */ |
429 | 429 | 'validateEmail' : function( mailtxt ) { |
430 | 430 | if( mailtxt === '' ) { |
— | — | @@ -475,7 +475,7 @@ |
476 | 476 | // User part which is liberal :p |
477 | 477 | '[' + rfc5322_atext + '\\.' + ']' + '+' |
478 | 478 | + |
479 | | - // "at" |
| 479 | + // 'at' |
480 | 480 | '@' |
481 | 481 | + |
482 | 482 | // Domain first part |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -12,14 +12,14 @@ |
13 | 13 | /* Skins */ |
14 | 14 | |
15 | 15 | 'skins.vector' => array( |
16 | | - 'styles' => array( 'skins/vector/screen.css' => array( 'media' => 'screen' ) ) |
| 16 | + 'styles' => array( 'skins/vector/screen.css' => array( 'media' => 'screen' ) ), |
17 | 17 | ), |
18 | 18 | 'skins.monobook' => array( |
19 | 19 | 'styles' => array( |
20 | 20 | 'skins/monobook/main.css' => array( 'media' => 'screen' ), |
21 | 21 | // Honor $wgHandheldStyle. This is kind of evil |
22 | | - //$GLOBALS['wgHandheldStyle'] => array( 'media' => 'handheld' ) |
23 | | - ) |
| 22 | + //$GLOBALS['wgHandheldStyle'] => array( 'media' => 'handheld' ), |
| 23 | + ), |
24 | 24 | ), |
25 | 25 | |
26 | 26 | /* jQuery */ |
— | — | @@ -32,48 +32,48 @@ |
33 | 33 | /* jQuery Plugins */ |
34 | 34 | |
35 | 35 | 'jquery.async' => array( |
36 | | - 'scripts' => 'resources/jquery/jquery.async.js' |
| 36 | + 'scripts' => 'resources/jquery/jquery.async.js', |
37 | 37 | ), |
38 | 38 | 'jquery.autoEllipsis' => array( |
39 | 39 | 'scripts' => 'resources/jquery/jquery.autoEllipsis.js', |
40 | 40 | 'dependencies' => 'jquery.highlightText', |
41 | 41 | ), |
42 | 42 | 'jquery.checkboxShiftClick' => array( |
43 | | - 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js' |
| 43 | + 'scripts' => 'resources/jquery/jquery.checkboxShiftClick.js', |
44 | 44 | ), |
45 | 45 | 'jquery.client' => array( |
46 | 46 | 'scripts' => 'resources/jquery/jquery.client.js', |
47 | 47 | ), |
48 | 48 | 'jquery.collapsibleTabs' => array( |
49 | | - 'scripts' => 'resources/jquery/jquery.collapsibleTabs.js' |
| 49 | + 'scripts' => 'resources/jquery/jquery.collapsibleTabs.js', |
50 | 50 | ), |
51 | 51 | 'jquery.colorUtil' => array( |
52 | | - 'scripts' => 'resources/jquery/jquery.colorUtil.js' |
| 52 | + 'scripts' => 'resources/jquery/jquery.colorUtil.js', |
53 | 53 | ), |
54 | 54 | 'jquery.color' => array( |
55 | 55 | 'scripts' => 'resources/jquery/jquery.color.js', |
56 | | - 'dependencies' => 'jquery.colorUtil' |
| 56 | + 'dependencies' => 'jquery.colorUtil', |
57 | 57 | ), |
58 | 58 | 'jquery.cookie' => array( |
59 | | - 'scripts' => 'resources/jquery/jquery.cookie.js' |
| 59 | + 'scripts' => 'resources/jquery/jquery.cookie.js', |
60 | 60 | ), |
61 | 61 | 'jquery.delayedBind' => array( |
62 | | - 'scripts' => 'resources/jquery/jquery.delayedBind.js' |
| 62 | + 'scripts' => 'resources/jquery/jquery.delayedBind.js', |
63 | 63 | ), |
64 | 64 | 'jquery.expandableField' => array( |
65 | | - 'scripts' => 'resources/jquery/jquery.expandableField.js' |
| 65 | + 'scripts' => 'resources/jquery/jquery.expandableField.js', |
66 | 66 | ), |
67 | 67 | 'jquery.highlightText' => array( |
68 | | - 'scripts' => 'resources/jquery/jquery.highlightText.js' |
| 68 | + 'scripts' => 'resources/jquery/jquery.highlightText.js', |
69 | 69 | ), |
70 | 70 | 'jquery.hoverIntent' => array( |
71 | | - 'scripts' => 'resources/jquery/jquery.hoverIntent.js' |
| 71 | + 'scripts' => 'resources/jquery/jquery.hoverIntent.js', |
72 | 72 | ), |
73 | 73 | 'jquery.placeholder' => array( |
74 | | - 'scripts' => 'resources/jquery/jquery.placeholder.js' |
| 74 | + 'scripts' => 'resources/jquery/jquery.placeholder.js', |
75 | 75 | ), |
76 | 76 | 'jquery.localize' => array( |
77 | | - 'scripts' => 'resources/jquery/jquery.localize.js' |
| 77 | + 'scripts' => 'resources/jquery/jquery.localize.js', |
78 | 78 | ), |
79 | 79 | 'jquery.makeCollapsible' => array( |
80 | 80 | 'scripts' => 'resources/jquery/jquery.makeCollapsible.js', |
— | — | @@ -85,10 +85,10 @@ |
86 | 86 | 'styles' => 'resources/jquery/jquery.suggestions.css', |
87 | 87 | ), |
88 | 88 | 'jquery.tabIndex' => array( |
89 | | - 'scripts' => 'resources/jquery/jquery.tabIndex.js' |
| 89 | + 'scripts' => 'resources/jquery/jquery.tabIndex.js', |
90 | 90 | ), |
91 | 91 | 'jquery.textSelection' => array( |
92 | | - 'scripts' => 'resources/jquery/jquery.textSelection.js' |
| 92 | + 'scripts' => 'resources/jquery/jquery.textSelection.js', |
93 | 93 | ), |
94 | 94 | 'jquery.tipsy' => array( |
95 | 95 | 'scripts' => 'resources/jquery.tipsy/jquery.tipsy.js', |
— | — | @@ -130,7 +130,7 @@ |
131 | 131 | 'jquery.ui.droppable' => array( |
132 | 132 | 'scripts' => 'resources/jquery.ui/jquery.ui.droppable.js', |
133 | 133 | 'dependencies' => array( |
134 | | - 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable' |
| 134 | + 'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.widget', 'jquery.ui.draggable', |
135 | 135 | ), |
136 | 136 | ), |
137 | 137 | 'jquery.ui.resizable' => array( |
— | — | @@ -237,7 +237,7 @@ |
238 | 238 | 'vi' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-vi.js', |
239 | 239 | 'zh-cn' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js', |
240 | 240 | 'zh-hk' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js', |
241 | | - 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js' |
| 241 | + 'zh-tw' => 'resources/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js', |
242 | 242 | ), |
243 | 243 | ), |
244 | 244 | 'jquery.ui.dialog' => array( |
— | — | @@ -430,8 +430,7 @@ |
431 | 431 | 'mediawiki.legacy.ajax' => array( |
432 | 432 | 'scripts' => 'skins/common/ajax.js', |
433 | 433 | 'messages' => array( |
434 | | - 'watch', 'unwatch', 'watching', 'unwatching', 'tooltip-ca-watch', |
435 | | - 'tooltip-ca-unwatch' |
| 434 | + 'watch', 'unwatch', 'watching', 'unwatching', 'tooltip-ca-watch', 'tooltip-ca-unwatch', |
436 | 435 | ), |
437 | 436 | 'dependencies' => 'mediawiki.legacy.wikibits', |
438 | 437 | ), |