MediaWiki:Gadget-twinkleblock.js: Difference between revisions

Content deleted Content added
Repo at 00d4efa: Fix bug when toggling form option
Repo at 451b991: Don't add expiry to template if it's a date, not a duration
Line 1,758:
if (params.indefinite) {
text += '|indef=yes';
} else if (!params.blank_duration && !new Morebits.date(params.expiry).isValid()) {
// Block template wants a duration, not date
text += '|time=' + params.expiry;
}