User:Ohconfucius/test/MOSNUM dates.js: Difference between revisions

Content deleted Content added
+functionality
bug fix - some accessdates still being changed in mdy function
Line 647:
var txt = document.editform.wpTextbox1;
txt.value = yyyymmdd_to_mdy(txt.value); /.replace(/(\|[ adapted]*accessdate[ from]*=)[ User:Plastikspork]*([\d\w])/datetools.js gi, '$1$2');
txt.value = yyyymmdd_to_mdy(txt.value); // adapted from User:Plastikspork/datetools.js
txt.value=txt.value.replace(/([^\d\w\/\-%,])(\d{4}-\d\d-\d\d)(<\s?\/ref.*?>)/g, '$1$2 $3');