MediaWiki:DYK-nomination-wizard.js: Difference between revisions
Content deleted Content added
update |
update date check behaviour per feedback at WT:DYK |
||
Line 140:
label: 'on date: ',
name: 'date',
tooltip: 'The date
value: new Date().toISOString().slice(0, 10), // YYYY-MM-DD format
event: dyk.dateCheck // for the benefit of browsers that don't support a datepicker for date fields
Line 457:
}
var diffdays = diff/(1000*60*60*24);
if (diffdays >=
$(checkElem).html(Morebits.createHtml('Date must be within the past week, see [[WP:DYK#New]]'));
checkElem.style.color = '
} else if (diffdays >= 8) {
checkElem.textContent = 'Possibly ineligible as date is not within the past week';
Line 620:
}
var diffdays = diff/(1000*60*60*24);
if (diffdays >=
alert('The date specified is well outside the past week, and hence the article is ineligible for DYK, see WP:DYK#New');
return;
}
|