Basic language selector

* uses setlang attribute in URL to switch language
* introduced a language filter widget by extending
  jquery.ui.autocomplete
* UI rendering is done by using SkinAfterContent hook

Change-Id: Ifa63a04ba1d060b6db8fba14bb868045cf6b97c3
This commit is contained in:
Santhosh Thottingal
2012-06-19 15:04:24 +05:30
parent 8527e33475
commit 9087825e6d
9 changed files with 302 additions and 71 deletions

View File

@@ -3,12 +3,6 @@
*/
( function( $ ) {
$( document ).ready( function() {
/* Create a trigger somewhere in the page.
$trigger = $("<a href='#'>")
.addClass( 'uls-trigger' )
.text("English"); // FIXME proper trigger text to go here.
$('#mw-head').append( $trigger );*/
// Bind ULS to the trigger.
$('.uls-trigger').uls();
$( '.uls-trigger' ).uls();
} );
} )( jQuery );