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
2013-05-21 17:33:10 +05:30
committed by Amir E. Aharoni
parent 8655504371
commit 8b46d34004
4 changed files with 26 additions and 1 deletions

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 ) );