Изменения

MediaWiki:Common.js

202 байта добавлено, 20:19, 19 августа 2016
Нет описания правки
* That way the file will be categorised so someone can find a license for the file
*/
function licenseSelectorCheck() { var selector = document.getElementById( "wpLicense" ); var selection = selector.options[selector.selectedIndex].value; if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) {
if ( $( '#wpLicense' ).val() === '' ) {
$( '#wpLicense' ).val( 'Лицензия' i18n.defaultLicense );
}
/*mw.loader.using( 'mediawiki.speciallegacy.upload', function() {
var change = setInterval( function() {
if ( licenseSelectorCheck ) {
}, 500 );
} );*/
}wgUploadLicenseObj.fetchPreview( selection );}