Merge "Remove preventDefault from settings.open"

This commit is contained in:
jenkins-bot 2014-08-25 17:51:59 +00:00 committed by Gerrit Code Review
commit e50cf04603

View file

@ -119,7 +119,7 @@
*
* @method open
*/
settings.open = function ( e ) {
settings.open = function () {
var
h = $( window ).height(),
w = $( window ).width();
@ -131,7 +131,6 @@
.css( 'left', ( w - 600 ) / 2 )
.css( 'top', ( h - settings.$element.outerHeight( true ) ) / 2 );
e.preventDefault();
return false;
};
@ -160,7 +159,10 @@
$( '<a>' )
.attr( 'href', '#)' )
.text( mw.message( 'popups-settings-enable' ).text() )
.click( settings.open )
.click( function ( e ) {
settings.open();
e.preventDefault();
} )
),
$footer = $( '#footer-places, #f-list' );