Included client in the initial payload. Restored functionality that used to exist...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 11 Jan 2011 20:56:15 +0000 (20:56 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 11 Jan 2011 20:56:15 +0000 (20:56 +0000)
resources/jquery/jquery.client.js
resources/mediawiki/mediawiki.js

index 81f220e..9d52ff5 100644 (file)
@@ -191,4 +191,13 @@ $.client = new ( function() {
                }
                return true;
        }
-} )();
\ No newline at end of file
+} )();
+
+$( document ).ready( function() {
+       var profile = $.client.profile();
+       $( 'html' )
+               .addClass( 'client-' + profile.name )
+               .addClass( 'client-' + profile.name + '-' + profile.versionBase )
+               .addClass( 'client-' + profile.layout )
+               .addClass( 'client-' + profile.platform )
+} );
index 7533c1e..edf8b67 100644 (file)
@@ -1183,6 +1183,7 @@ if ( typeof startUp === 'function' ) {
 
 // Add jQuery Cookie to initial payload (used in mediaWiki.user)
 mediaWiki.loader.load( 'jquery.cookie' );
+mediaWiki.loader.load( 'jquery.client' );
 
 // Alias $j to jQuery for backwards compatibility
 window.$j = jQuery;