User:Pathoschild/script/MOSNUM dates.js: Difference between revisions

Content deleted Content added
fix inconsistent quote style
switch to now-updated MOSNUM utils script
 
(One intermediate revision by the same user not shown)
Line 7:
$.when(
$.ajax("//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js", { dataType: "script", cache: true }),
$.ajax("//en.wikipedia.org/w/index.php?title=User:PathoschildOhconfucius/script/MOSNUM_utils.js&action=raw&ctype=text/javascript", { dataType: "script", cache: true })
).then(function() {
pathoschild.TemplateScript.add(
Line 53:
*/
function ohc_extend_editor(editor) {
editor.ohc_regex = function(rg, sub, func) {
{
var text = editor.get();
text = ohc.dateutil.regex(text, rg, sub, func);