Update formatting

Change-Id: Iaee2ab4f36d3a0dce143c62965ab29de504b31ea
This commit is contained in:
Siebrand Mazeland
2013-10-09 13:04:00 +02:00
parent 2eecc721a2
commit 315cf739bc
13 changed files with 51 additions and 43 deletions

View File

@@ -138,7 +138,6 @@ div.display-settings-block:hover .settings-text {
opacity: 1;
}
button.button {
display: inline-block;
padding: 0.4065em 1.2195em 0.4065em;

View File

@@ -56,9 +56,10 @@ div.display-settings-block {
border-top: 1px solid #EEEEEE;
padding-top: 25px;
top: -20px;
position:relative;
position: relative;
min-height: 150px;
}
.uls-display-settings-font-selectors {
margin: 5px 0 15px 0;
border-top: 1px solid #EEEEEE;

View File

@@ -71,7 +71,7 @@ div.input-settings-block {
}
.ext-uls-input-settings-imes-title:empty {
display:none;
display: none;
}
.uls-input-settings-disable-info,

View File

@@ -524,7 +524,7 @@
} );
displaySettings.$parent.position();
$tabButtons.filter( '.down' ).removeClass( 'down');
$tabButtons.filter( '.down' ).removeClass( 'down' );
$button.addClass( 'down' );
} );

View File

@@ -85,7 +85,7 @@
mw.hook( 'mw.uls.interface.language.change' ).add( $.proxy( this.interfaceLanguageChange, this ) );
mw.hook( 'mw.uls.font.change' ).add( $.proxy( this.fontChange, this ) );
$( 'body' ).on( 'noresults.uls', '.uls-menu .languagefilter',
$.proxy( this.noSearchResults, this )
$.proxy( this.noSearchResults, this )
);
},

View File

@@ -283,28 +283,27 @@
} );
} );
function imeNotification () {
function imeNotification() {
var notificationMsg = ( mw.config.get( 'wgULSPosition' ) === 'personal' ) ?
'ext-uls-input-disable-notification-info-personal' :
'ext-uls-input-disable-notification-info-interlanguage',
$notification = $( '<div>' )
.addClass( 'uls-ime-notification-bubble' )
.append(
$( '<div>' )
.attr( 'data-i18n', 'ext-uls-input-disable-notification' ),
$( '<div>' )
.addClass( 'link' )
.attr( 'data-i18n', 'ext-uls-input-disable-notification-undo' )
.on( 'click', function() {
$.ime.preferences.enable();
$.ime.preferences.save( function () {
mw.ime.setup();
} );
} ),
$( '<div>' ).attr( 'data-i18n', notificationMsg )
);
.addClass( 'uls-ime-notification-bubble' )
.append(
$( '<div>' )
.attr( 'data-i18n', 'ext-uls-input-disable-notification' ),
$( '<div>' )
.addClass( 'link' )
.attr( 'data-i18n', 'ext-uls-input-disable-notification-undo' )
.on( 'click', function () {
$.ime.preferences.enable();
$.ime.preferences.save( function () {
mw.ime.setup();
} );
} ),
$( '<div>' ).attr( 'data-i18n', notificationMsg )
);
mw.notify( $notification.i18n() );
}
}( jQuery, mediaWiki, document ) );

View File

@@ -112,7 +112,7 @@
// Delay is zero if event logging is not enabled
window.setTimeout( function () {
deferred.resolve();
}, mw.config.get( 'wgULSEventLogging' ) * 500 );
}, mw.config.get( 'wgULSEventLogging' ) * 500 );
};
@@ -221,7 +221,9 @@
*/
function isBrowserSupported() {
var blacklist = {
'msie': [['<=', 7]]
'msie': [
['<=', 7]
]
};
// jquery.client changed in MediaWiki 1.22.

View File

@@ -184,10 +184,10 @@
previousLang = previousLanguages.slice( -1 )[0];
$ulsTrigger = ( ulsPosition === 'interlanguage' ) ?
$( '.uls-settings-trigger' ) :
$( '.uls-trigger' );
$( '.uls-settings-trigger' ) :
$( '.uls-trigger' );
if ( previousLang === currentLang ) {
if ( previousLang === currentLang ) {
$ulsTrigger.tipsy( { gravity: rtlPage ? 'e' : 'w' } );
return;
@@ -196,8 +196,7 @@
previousLanguages.push( currentLang );
mw.uls.setPreviousLanguages( previousLanguages );
anonMode = ( mw.user.isAnon() &&
!mw.config.get( 'wgULSAnonCanChangeLanguage' ) );
anonMode = ( mw.user.isAnon() && !mw.config.get( 'wgULSAnonCanChangeLanguage' ) );
if ( anonMode || !previousLang || !$.uls.data.languages[previousLang] ) {
// Do not show tooltip
@@ -271,7 +270,7 @@
}
// The interlanguage position needs some time to settle down
window.setTimeout( function() {
window.setTimeout( function () {
// Show the tipsy tooltip on page load.
showTipsy( 6000 );
}, 500 );

View File

@@ -97,10 +97,10 @@
// Get the name of all registered modules and list them in left side menu.
// Sort the modules based on id
modules = $.map( $.fn.languagesettings.modules, function( element, index ) {
modules = $.map( $.fn.languagesettings.modules, function ( element, index ) {
return index;
} ).sort();
$.each( modules, function( index, moduleName ) {
$.each( modules, function ( index, moduleName ) {
if ( $.fn.languagesettings.modules.hasOwnProperty( moduleName ) ) {
if ( !defaultModule ) {
defaultModule = moduleName;
@@ -166,8 +166,8 @@
var top, pos, left;
pos = $.extend( {}, this.$element.offset(), {
height: this.$element[0].offsetHeight
} );
height: this.$element[0].offsetHeight
} );
top = this.top || pos.top + pos.height;
left = this.left || '25%';
this.$window.css( {