Simplify the language settings display

Directly show language settings instead of showing ULS language selector
and then simulating click on language settings

Change-Id: Iafb15ac9a7140fcce9e71ed933be6c55be81dc7e
This commit is contained in:
Santhosh Thottingal
2013-05-15 17:20:07 +05:30
parent 1ccfcb7989
commit bb3e72f5a0
5 changed files with 72 additions and 110 deletions

View File

@@ -299,15 +299,13 @@
},
onVisible: function () {
var $parent = $( '#language-settings-dialog' );
// Re-position the element according to the window that called it
this.top = $parent.css( 'top' );
this.left = $parent.css( 'left' );
this.$menu.css( this.position() );
this.$menu.find( '.caret-before, .caret-after' ).css( 'top',
this.$menu.find( '.row' ).height()
);
if ( parseInt( $parent.css( 'left' ), 10 ) ) {
this.$menu.css( 'left', $parent.css( 'left' ) );
}
if ( parseInt( $parent.css( 'top' ), 10 ) ) {
this.$menu.css( 'top', $parent.css( 'top' ) );
}
},
onSelect: function ( langCode ) {
displaySettings.enableApplyButton();