MediaWiki:RefToolbar.js: Difference between revisions
Content deleted Content added
subtract 1 from the month |
add back-compat if template doesn't support autofilling month/year |
||
Line 514:
}
if (type === 'pmid' || type === 'doi') {
if (type === 'doi' && (data.fulldate || $('.'+cl+'month').size() == 0)) {
var DT = new Date(data.date);
$('.'+cl+'date').val(CiteTB.formatDate(DT));
|