var Overlay = mw.mobileFrontend.require( 'mobile.startup' ).Overlay; /** * Overlay for notifications filter * * @class NotificationsFilterOverlay * @param {Object} options * @param {Function} options.onBeforeExit executes before overlay closes * @param {jQuery.Object} options.$notifReadState - notification read status widgets * @param {jQuery.Object} options.$crossWikiUnreadFilter - notification unread filter * */ function notificationsFilterOverlay( options ) { var $content, overlay; // Initialize options.$crossWikiUnreadFilter.on( 'click', function () { overlay.hide(); } ); options.$notifReadState.find( '.oo-ui-buttonElement' ).on( 'click', function () { overlay.hide(); } ); $content = $( '