Allow ULS language settings accessed from user preference screen.

Adds a link in 'personal/i18n' section of user preferences

Bug: 47240
Change-Id: I04d1ea7d36db45f9a0af04e11dade9ae0b524e8e
This commit is contained in:
Santhosh Thottingal authored and Amir E. Aharoni committed 2013-05-27 16:33:40 +03:00
1 parent 8655504371
commit 8b46d34004
4 files changed
+26 -1

No files matched your search

+13
View File
@@ -248,6 +248,7 @@
}
}
}
// ULS options that are common to all modes of showing
ulsOptions = {
onReady: function () {
@@ -289,6 +290,18 @@
$ulsTrigger.uls( ulsOptions );
}
// Bind language settings to preferences page link
$( '#uls-preferences-link' )
.text( $.i18n( 'ext-uls-language-settings-preferences-link' ) )
.click( function () {
if ( $ulsTrigger.length ) {
$ulsTrigger.click();
} else {
$( '.uls-settings-trigger' ).click();
}
return false;
} );
showULSTooltip();
} );
}( jQuery, mediaWiki ) );