User:Cyde/monobook.js/dates.js: Difference between revisions

Content deleted Content added
Cyde (talk | contribs)
m Will this work?
m Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
 
(One intermediate revision by one other user not shown)
Line 4:
 
function formatdates() {
document.getElementById('wpMinoredit').valuechecked = 1true;
var txt = document.editform.wpTextbox1;
 
Line 152:
}
 
addOnloadHook$(function () {
if(document.forms.editform) {
addLink('p-cactions', 'javascript:formatdates()', 'dates', 'ca-datefixer', 'Fixes some date formatting', '', '');