Expose compact mode as an option

* some minor space cleanup
* Also close the ULS window when clicked outside

Change-Id: I06b465926196f79e47990e80e3b23f5a16474ba3
This commit is contained in:
Santhosh Thottingal
2013-03-15 14:57:19 +05:30
parent 44ff5e0120
commit 0340e609a0
4 changed files with 11 additions and 14 deletions

View File

@@ -143,6 +143,10 @@
left: '25%'
} );
if ( this.options.compact ) {
this.$menu.addClass( 'uls-compact' );
}
if ( !this.initialized ) {
$( 'body' ).prepend( this.$menu );
this.i18n();
@@ -281,6 +285,8 @@
uls.$languageFilter.languagefilter( 'clear' );
}
} );
$( 'html' ).click( $.proxy( this.hide, this ) );
},
/**
@@ -383,6 +389,7 @@
languages: $.uls.data.getAutonyms(), // Languages to be used for ULS, default is all languages
quickList: null, // Array of language codes or function that returns such
lazyload: true, // Lazy load the language list when scrolled.
compact: false, // Show ULS in compact mode
showRegions: ['WW', 'AM', 'EU', 'ME', 'AF', 'AS', 'PA']
};