MediaWiki:FileUploadWizard.js: Difference between revisions

Content deleted Content added
Catrope (talk | contribs)
Fix bad syntax in selector, was causing JS errors
Catrope (talk | contribs)
Undid revision 509858609 by Catrope (talk): oops
Line 300:
['PD-author', 'Public ___domain'],
[],
['Other: (see below)'],
['other', 'Other license (see below)'],
[]
],
Line 315 ⟶ 314:
['PD-author', 'Public ___domain'],
[],
['Other: (see below)'],
['other', 'Other license (see below)'],
[]
],
Line 535 ⟶ 533:
var warn = fuw.warn;
var opts = fuw.opts = { };
opts.InputFilename = ($('#TargetForm .[name="file"]')[0]).value;
 
var widgets = fuw.ScriptForm.elements;
Line 757 ⟶ 755:
// setting the submit buttons active
var valid = fuw.validateInput();
var validForCommons = valid && opts.OptionFree && !(opts.OverwriteSame || opts.OverwriteDifferent);
&& !opts.ThirdPartyEvidenceOptionNone;
fuwSetVisible('sendToCommons', opts.OptionFree);
fuwSetEnabled('CommonsButton', validForCommons);