Changes to show the display settings in the sidebar

* Add a caret for the ULS in the sidebar.
* Adjust the panel's position.
* Immediately show the Display settings instead of the language list.

Also added documentation.

Change-Id: I6635092e9e020cb1f5b51f437abde4e81c31ae48
This commit is contained in:
Amir E. Aharoni
2013-04-25 17:04:23 +03:00
parent 7ca5f76edc
commit 03546744ba
4 changed files with 90 additions and 24 deletions

View File

@@ -465,7 +465,10 @@
displaySettings.$template.find( 'button.uls-display-settings-cancel' ).on( 'click', function () {
mw.webfonts.preferences.setFont( displaySettings.contentLanguage, oldFont );
displaySettings.$webfonts.refresh();
if ( displaySettings.$webfonts ) {
displaySettings.$webfonts.refresh();
}
displaySettings.$template.find( 'div.uls-ui-languages button.button' ).each( function () {
var $button = $( this );
@@ -578,8 +581,11 @@
*/
onSave: function ( success ) {
if ( success ) {
// Live font update
this.$webfonts.refresh();
if ( this.$webfonts !== undefined ) {
// Live font update
this.$webfonts.refresh();
}
this.$parent.hide();
// we delay change UI language to here, because it causes a page refresh
if ( this.uiLanguage !== this.getUILanguage() ) {