2734
правки
Изменения
var mcw = window.mcw = {};
/* Variables for interface text used throughout the script, for ease of translating */
mcw.i18n = {
// Collapsible tables and page loader
hideText: 'скрыть',
showText: 'показать',
// Page loader
loadErrorTitle: 'Возникла ошибка при загрузке содержимого',
// File upload
defaultLicense: 'Лицензия'
};
/* Keep track of delegated events on dynamic content */
mcw.events = {};
/* Add extra buttons to the classic toolbar */
if ( mw.user.options.get( 'showtoolbar' ) && !mw.user.options.get( 'usebetatoolbar' ) ) {
importScript( 'MediaWiki:Toolbar.js' );
}
if (wgAction == 'edit' || wgAction == 'submit') {
importScript( 'MediaWiki:AddSumButton.js' );
}
/* Fired whenever wiki content is added. (#mw-content-text, live preview, load page, etc.) */