Skeleton extension for Universal Language Selector
* Basic extension code with i18n * Adds a link to personal links to trigger ULS * Core uls javascript code, to plug to the given trigger. * Qunit, PHPUnit framework in place. * and lot of TODOs and FIXMEs Patch set 2: * A tiny whitespace fix. Change-Id: I300647a21e0b7f65b7d9dc6101014ea9389c9f2a
This commit is contained in:
committed by
Amir E. Aharoni
parent
237820113d
commit
8527e33475
14
resources/ext.uls.init.js
Normal file
14
resources/ext.uls.init.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* ULS startup script
|
||||
*/
|
||||
( 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();
|
||||
} );
|
||||
} )( jQuery );
|
||||
Reference in New Issue
Block a user