From 4950c2edf9601bd12b2fd77c33b6e34d3a625f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Wed, 19 Apr 2017 18:02:57 +0200 Subject: Prepare for mw 1.27 --- skins/common/upload.js | 355 ------------------------------------------------- 1 file changed, 355 deletions(-) delete mode 100644 skins/common/upload.js (limited to 'skins/common/upload.js') diff --git a/skins/common/upload.js b/skins/common/upload.js deleted file mode 100644 index 7933caf..0000000 --- a/skins/common/upload.js +++ /dev/null @@ -1,355 +0,0 @@ -/*jshint camelcase:false */ -( function ( mw, $ ) { -var licenseSelectorCheck, wgUploadWarningObj, wgUploadLicenseObj, fillDestFilename, - ajaxUploadDestCheck = mw.config.get( 'wgAjaxUploadDestCheck' ), - fileExtensions = mw.config.get( 'wgFileExtensions' ), - $spinnerDestCheck, $spinnerLicense; - -licenseSelectorCheck = window.licenseSelectorCheck = function () { - var selector = document.getElementById( 'wpLicense' ), - selection = selector.options[selector.selectedIndex].value; - if ( selector.selectedIndex > 0 ) { - if ( !selection ) { - // Option disabled, but browser is broken and doesn't respect this - selector.selectedIndex = 0; - } - } - // We might show a preview - wgUploadLicenseObj.fetchPreview( selection ); -}; - -function uploadSetup() { - // Disable URL box if the URL copy upload source type is not selected - var ein, - selector, ua, isMacIe, i, - optionsTable, row, td, - wpLicense, wpLicenseRow, wpLicenseTbody, - uploadSourceIds, len, onchange, - e = document.getElementById( 'wpSourceTypeurl' ); - if ( e ) { - if ( !e.checked ) { - ein = document.getElementById( 'wpUploadFileURL' ); - if ( ein ) { - ein.disabled = true; - } - } - } - - // For MSIE/Mac: non-breaking spaces cause the