MediaWiki:RefToolbar.js: Difference between revisions

Content deleted Content added
no one cba to review this, so just going to implement this - fix for DOI autofill when the full date isn't available
subtract 1 from the month
Line 519:
} else if (type === 'doi' && !data.fulldate) {
if (data.month) { // lookup.php sets month to false if it isn't provided
$('.'+cl+'month').val( CiteTB.getOption('months')[parseInt(data.month)-1] );
}
$('.'+cl+'year').val(data.year);