Remove preventDefault from settings.open

Bug: 69579
Change-Id: I6e457542060d147c35ccb2dfeade5b90f20bd2ca
This commit is contained in:
Prateek Saxena 2014-08-18 17:07:54 +05:30
parent 46bcb6d4d2
commit ca8b7f8658

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' );