Index: trunk/phase3/resources/mediawiki/mediawiki.js |
— | — | @@ -335,7 +335,6 @@ |
336 | 336 | if ( name ) { |
337 | 337 | return name; |
338 | 338 | } |
339 | | - mediaWiki.loader.load( 'jquery.cookie' ); |
340 | 339 | var sessionId = $.cookie( 'mediaWiki.user.sessionId' ); |
341 | 340 | if ( typeof sessionId == 'undefined' || sessionId == null ) { |
342 | 341 | sessionId = generateSessionId(); |
— | — | @@ -1143,6 +1142,9 @@ |
1144 | 1143 | delete startUp; |
1145 | 1144 | } |
1146 | 1145 | |
| 1146 | +// Add jQuery Cookie to initial payload (used in mediaWiki.user) |
| 1147 | +mediaWiki.loader.load( 'jquery.cookie' ); |
| 1148 | + |
1147 | 1149 | // Alias $j to jQuery for backwards compatibility |
1148 | 1150 | window.$j = jQuery; |
1149 | 1151 | window.mw = mediaWiki; |