From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- .../mediawiki.special.javaScriptTest.js | 54 ++++++++++++---------- 1 file changed, 29 insertions(+), 25 deletions(-) (limited to 'resources/mediawiki.special/mediawiki.special.javaScriptTest.js') diff --git a/resources/mediawiki.special/mediawiki.special.javaScriptTest.js b/resources/mediawiki.special/mediawiki.special.javaScriptTest.js index d413f602..808d5fe8 100644 --- a/resources/mediawiki.special/mediawiki.special.javaScriptTest.js +++ b/resources/mediawiki.special/mediawiki.special.javaScriptTest.js @@ -1,33 +1,37 @@ -/* +/** * JavaScript for Special:JavaScriptTest */ -jQuery( document ).ready( function( $ ) { +( function ( mw, $ ) { + $( function () { - // Create useskin dropdown menu and reload onchange to the selected skin - // (only if a framework was found, not on error pages). - $( '#mw-javascripttest-summary.mw-javascripttest-frameworkfound' ).append( function() { + // Create useskin dropdown menu and reload onchange to the selected skin + // (only if a framework was found, not on error pages). + $( '#mw-javascripttest-summary.mw-javascripttest-frameworkfound' ).append( function () { - var $html = $( '

' ), - select = ''; - // Build '; + // Build '; - // Bind onchange event handler and append to form - $html.append( - $( select ).change( function() { - window.location = QUnit.url( { useskin: $(this).val() } ); - } ) - ); + // Bind onchange event handler and append to form + $html.append( + $( select ).change( function () { + window.location = QUnit.url( { useskin: $(this).val() } ); + } ) + ); - return $html; + return $html; + } ); } ); -} ); + +}( mediaWiki, jQuery ) ); + -- cgit v1.2.2