/*!
* JavaScript for Special:Watchlist
*/
-( function ( mw, $ ) {
+( function ( $ ) {
$( function () {
$( '.mw-changeslist-line-watched .mw-title a' ).on( 'click', function () {
$( this )
.removeClass( 'mw-changeslist-line-watched' );
} );
} );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
/*!
* JavaScript for Special:Preferences: Check for successbox to replace with notifications.
*/
-( function ( mw, $ ) {
+( function ( $ ) {
$( function () {
var convertmessagebox = require( 'mediawiki.notification.convertmessagebox' );
convertmessagebox();
} );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
* @copyright 2011-2016 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
-( function ( $, mw ) {
+( function ( mw ) {
/**
* MediaWiki media resource queue.
mw.widgets.MediaSearchQueue.prototype.getSearchQuery = function () {
return this.getParams().gsrsearch;
};
-}( jQuery, mediaWiki ) );
+}( mediaWiki ) );
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
-( function ( $, mw ) {
+( function ( mw ) {
/**
* Creates an mw.widgets.TitleSearchWidget object.
return response.query || {};
};
-}( jQuery, mediaWiki ) );
+}( mediaWiki ) );
* Jeroen De Dauw <jeroendedauw at gmail dot com>
*/
-( function ( mw, $ ) {
+( function ( $ ) {
'use strict';
$( function () {
} );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
-( function ( mw, $ ) {
+( function ( $ ) {
var loremIpsum = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.';
QUnit.module( 'jquery.makeCollapsible', QUnit.newMwEnvironment() );
$clone.find( '.mw-collapsible-toggle a' ).trigger( 'click' );
} );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
-( function ( mw, $ ) {
+( function ( $ ) {
QUnit.module( 'mediawiki.special.recentchanges', QUnit.newMwEnvironment() );
// TODO: verify checkboxes == [ 'nsassociated', 'nsinvert' ]
// DOM cleanup
$env.remove();
} );
-}( mediaWiki, jQuery ) );
+}( jQuery ) );
-( function ( $, mw ) {
+( function ( mw ) {
QUnit.module( 'mediawiki.errorLogger', QUnit.newMwEnvironment() );
QUnit.test( 'installGlobalHandler', function ( assert ) {
assert.strictEqual( w.onerror( errorMessage, errorUrl, errorLine ), true,
'Global handler preserves true return from previous handler' );
} );
-}( jQuery, mediaWiki ) );
+}( mediaWiki ) );