( function ( $, mw ) { /** * @class mw.popups.settings * @singleton */ var settings = {}; /** * Check if the navigation popups gadget is enabled by looking for * the `disablePopups` method * @property navPopEnabled */ settings.navPopEnabled = ( typeof disablePopups !== 'undefined' ); /** * The settings' dialog's section element * @property $element */ settings.$element = $( '
' ).attr( 'id', 'mwe-popups-settings' ); /** * Renders the relevant form and labels in the settings dialog * * @method render */ settings.render = function () { var $closeIcon = $( '' ).html( '×' ), $titleText = $( '

' ).text( mw.message( 'popups-settings-title' ).text() ), $title = $( '
' ).append( $closeIcon, $titleText ), $description = $( '

' ).text( mw.message( 'popups-settings-description' ).text() ), $radioGroup = $( '' ), $cancelButton = $( '