} );
};
-} )( jQuery );
+} )( jQuery );
\ No newline at end of file
* @author Krinkle <krinklemail@gmail.com>
* @license GPL v2
*/
-
+( function( $ ) {
$.fn.checkboxShiftClick = function( text ) {
var prevCheckbox = null;
var $box = this;
prevCheckbox = e.target;
} );
return $box;
-};
\ No newline at end of file
+};
+} )( jQuery );
\ No newline at end of file
/**
* User-agent detection
*/
+ */
+( function( $ ) {
$.client = new ( function() {
/* Private Members */
.addClass( 'client-' + profile.layout )
.addClass( 'client-' + profile.platform );
} );
+
+} )( jQuery );
\ No newline at end of file
* Copyright 2007 John Resig
* Released under the MIT and GPL licenses.
*
- * - 2011-01-05: Modified by Krinkle to use the jQuery.colorUtil plugin (has to be loaded first)
+ * - 2011-01-05: Modified by Krinkle to use the jQuery.colorUtil plugin (which has to be loaded first!)
*/
(function( $ ) {
* Mostly based on other plugins and functions (taken through JSLint and optimized a little).
* Sources cited locally.
*/
+( function( $ ) {
$.colorUtil = {
// Color Conversion function from highlightFade
}
// Otherwise, we're most likely dealing with a named color
- return $.colorUtil.colors[jQuery.trim(color).toLowerCase()];
+ return $.colorUtil.colors[$.trim(color).toLowerCase()];
},
// Some named colors to work with
')';
}
-};
\ No newline at end of file
+};
+} )( jQuery );
\ No newline at end of file
} );
}
} );
-} )( jQuery );
+} )( jQuery );
\ No newline at end of file
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
-;(function($) {
+(function($) {
/*
Usage Note:
* <img src="something.jpg" title="My Title Message" alt="My Alt Message" />
* </p>
*/
+( function( $ ) {
/**
* Localizes a DOM selection by replacing <msg /> elements with localized text and adding
* localized title and alt attributes to elements with title-msg and alt-msg attributes
// Let IE know about the msg tag before it's used...
document.createElement( 'msg' );
+} )( jQuery );
* @license CC-BY 3.0 <http://creativecommons.org/licenses/by/3.0>
* @license GPL2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
*/
+( function( $, mw ) {
$.fn.makeCollapsible = function() {
$toggleLink.click();
}
} );
-};
\ No newline at end of file
+};
+} )( jQuery, mediaWiki );
\ No newline at end of file
* @version 0.2.0
* @license GPL v2
*/
+( function( $ ) {
$.fn.placeholder = function() {
});
};
+} )( jQuery );
\ No newline at end of file
* highlightInput: Whether to hightlight matched portions of the input or not
* Type: Boolean, Default: false
*/
+( function( $ ) {
$.suggestions = {
/**
$(this).data( 'suggestions-context', context );
} );
return returnValue !== null ? returnValue : $(this);
-};
\ No newline at end of file
+};
+} )( jQuery );
\ No newline at end of file
+/**
+ * jQuery tabIndex
+ */
+( function( $ ) {
/**
* Finds the lowerst tabindex in use within a selection
*
}
} );
return maxTabIndex;
-};
\ No newline at end of file
+};
+} )( jQuery );
\ No newline at end of file
/**
* These plugins provide extra functionality for interaction with textareas.
*/
+( function( $ ) {
$.fn.textSelection = function( command, options ) {
var fn = {
/**
}
return retval;
};
+} )( jQuery );
\ No newline at end of file
* Language.php in MediaWiki. This object contains methods for loading and
* transforming message text.
*/
+( function( $, mw ) {
-mediaWiki.language = {
+mw.language = {
/**
* Process the PLURAL template substitution
*
* @example {{Template:title|params}}
*/
'procPLURAL': function( template ) {
- if ( template.title && template.parameters && mediaWiki.language.convertPlural ) {
+ if ( template.title && template.parameters && mw.language.convertPlural ) {
// Check if we have forms to replace
if ( template.parameters.length == 0 ) {
return '';
}
// Restore the count into a Number ( if it got converted earlier )
- var count = mediaWiki.language.convertNumber( template.title, true );
+ var count = mw.language.convertNumber( template.title, true );
// Do convertPlural call
- return mediaWiki.language.convertPlural( parseInt( count ), template.parameters );
+ return mw.language.convertPlural( parseInt( count ), template.parameters );
}
// Could not process plural return first form or nothing
if ( template.parameters[0] ) {
* @param {boolean} integer Convert the return value to an integer
*/
'convertNumber': function( number, integer ) {
- if ( !mediaWiki.language.digitTransformTable ) {
+ if ( !mw.language.digitTransformTable ) {
return number;
}
// Set the target Transform table:
- var transformTable = mediaWiki.language.digitTransformTable;
+ var transformTable = mw.language.digitTransformTable;
// Check if the "restore" to Latin number flag is set:
if ( integer ) {
if ( parseInt( number ) == number ) {
// Digit Transform Table, populated by language classes where applicable
'digitTransformTable': null
};
+} )( jQuery, mediaWiki );
\ No newline at end of file
/*
* JavaScript for Special:Preferences
*/
+( function( $, mw ) {
$( '#prefsubmit' ).attr( 'id', 'prefcontrol' );
$( '#preferences' )
updateMailValidityLabel( $(this).val() );
} );
} );
+} )( jQuery, mediaWiki );
\ No newline at end of file
/*
* JavaScript for Specical:Search
*/
+( function( $, mw ) {
// Emulate HTML5 autofocus behavior in non HTML5 compliant browsers
if ( !( 'autofocus' in document.createElement( 'input' ) ) ) {
- $( 'input[autofocus]' ).focus();
+ $( 'input[autofocus]:first' ).focus();
}
+
+} )( jQuery, mediaWiki );
\ No newline at end of file
return new JpegMeta.JpegFile( fileReaderResult, fileName );
};
-} )( jQuery, mediaWiki );
+} )( jQuery, mediaWiki );
\ No newline at end of file
/**
* Utilities
*/
-
-(function($, mw) {
+( function( $, mw ) {
mw.util = {
this.initialised = true;
// Any initialisation after the DOM is ready
- $(function() {
+ $( function() {
// Shortcut to client profile return
var profile = $.client.profile();
mw.util.init();
-})(jQuery, mediaWiki);
+} )( jQuery, mediaWiki );
\ No newline at end of file
( function( $, mw ) {
- mediaWiki.test = {
+ mw.test = {
/* Variables */
'$table' : null,
}
};
- mediaWiki.test.init();
+ mw.test.init();
-} )(jQuery, mediaWiki);
+} )(jQuery, mediaWiki);
\ No newline at end of file