Content deleted Content added
me |
|||
Line 1:
//created by btilm
addOnloadHook(function()▼
function adt() {
));▼
}
▲addOnloadHook(function() {
if (document.editform) {
addPortletLink("p-cactions", "javascript:adt()", "adt", "ca-adt", "Add Display Title", "");
}
▲ document.getElementById('wpTextbox1').value = "{{" + dt + "}}" + document.getElementById('wpTextbox1').value;
▲ document.getElementById('wpSummary').value = "added displaytitle tag";
▲ document.getElementById('wpMinoredit').checked = true;
▲ document.getElementById('editform').submit();
});
function
var txt = document.editform.wpTextbox1;
▲var pro2=prompt('Enter desired title','wgTitle');
txt.value = txt.value.replace(/{{DISPLAYTITLE.*}}\n/gim, "");
▲if (pro2==null || pro2==wgTitle || pro2=="") {
document.editform.wpSummary.value = 'removed displaytitle tag';
▲ alert('Aborted');
document.editform.wpMinoredit.checked = true;
▲ return};
document.editform.submit();
}
addOnloadHook(function() {
if (document.editform) {
addPortletLink("p-cactions", "javascript:rdt()", "rdt", "ca-rdt", "Remove Display Title", "");
}
|