Index: trunk/extensions/LiquidThreads/jquery/plugins.js |
— | — | @@ -3723,61 +3723,3 @@ |
3724 | 3724 | }); |
3725 | 3725 | |
3726 | 3726 | })(jQuery); |
3727 | | -/* JavaScript for MediaWIki JS2 */ |
3728 | | - |
3729 | | -/** |
3730 | | - * This is designed to be directly compatible with (and is essentially taken |
3731 | | - * directly from) the mv_embed code for bringing internationalized messages into |
3732 | | - * the JavaScript space. As such, if we get to the point of merging that stuff |
3733 | | - * into the main branch this code will be uneeded and probably cause issues. |
3734 | | - */ |
3735 | | -// Creates global message object if not already in existence |
3736 | | -if ( !gMsg ) var gMsg = {}; |
3737 | | -if( ! mw ) var mw = { }; |
3738 | | - |
3739 | | -/** |
3740 | | - * Caches a list of messages for later retrieval |
3741 | | - * @param {Object} msgSet Hash of key:value pairs of messages to cache |
3742 | | - */ |
3743 | | -if( ! mw.addMessages ){ |
3744 | | - mw.addMessages = function( msgSet ){ |
3745 | | - for ( var i in msgSet ){ |
3746 | | - gMsg[ i ] = msgSet[i]; |
3747 | | - } |
3748 | | - } |
3749 | | -} |
3750 | | - |
3751 | | -/** |
3752 | | - * Retieves a message from the global message cache, performing on-the-fly |
3753 | | - * replacements using MediaWiki message syntax ($1, $2, etc.) |
3754 | | - * @param {String} key Name of message as it is in MediaWiki |
3755 | | - * @param {Array} args Array of replacement arguments |
3756 | | - */ |
3757 | | -function gM( key, args ) { |
3758 | | - var ms = ''; |
3759 | | - if ( key in gMsg ) { |
3760 | | - ms = gMsg[ key ]; |
3761 | | - if ( typeof args == 'object' || typeof args == 'array' ) { |
3762 | | - for ( var v in args ){ |
3763 | | - var rep = '\$'+ ( parseInt(v) + 1 ); |
3764 | | - ms = ms.replace( rep, args[v]); |
3765 | | - } |
3766 | | - } else if ( typeof args =='string' || typeof args =='number' ) { |
3767 | | - ms = ms.replace( /\$1/, args ); |
3768 | | - } |
3769 | | - return ms; |
3770 | | - } else { |
3771 | | - return '[' + key + ']'; |
3772 | | - } |
3773 | | -} |
3774 | | -/** |
3775 | | - * Mimics the no-conflict method used by the js2 stuff |
3776 | | - */ |
3777 | | -$j = jQuery.noConflict(); |
3778 | | -/** |
3779 | | - * Provides js2 compatible onload hook |
3780 | | - * @param func Function to call when ready |
3781 | | - */ |
3782 | | -mw.addOnloadHook = function( func ) { |
3783 | | - $j(document).ready( func ); |
3784 | | -} |