MediaWiki:Common.js: Różnice pomiędzy wersjami

m
aktualizacja
m (drob.)
m (aktualizacja)
//Removes the year of a DPL enclosed in a div with class noYear and addfirstcategorydate=true leaving only month and date
/*extern getElementsByClassName addOnloadHook */
 
var bodyContent = document.getElementById("bodyContent");
var noYear = getElementsByClassName(bodyContent, "div", "noYear");
li = noYear[i].getElementsByTagName("li");
for (var j = 0;j < li.length; j++) {
li[j].innerHTMLfirstChild.data = li[j].innerHTMLfirstChild.data.replace(/^(\d\d?{1,2}\s\S*)\s\d{4}:/, "$1:");
}
}
2401

edycji