mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
Remove preventDefault from settings.open
Bug: 69579 Change-Id: I6e457542060d147c35ccb2dfeade5b90f20bd2ca
This commit is contained in:
parent
46bcb6d4d2
commit
ca8b7f8658
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue