MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Line 1: Line 1:
function addMT(section) {
function addMT(section) {
var reason = prompt("What is mistranslated?");
if (var != null) {
$.ajax({
$.ajax({
   method: "GET",
   method: "GET",
   url: "/rmt.php?title=" + mw.config.get('wgTitle') + "&section=" + section
   url: "/rmt.php?title=" + mw.config.get('wgTitle') + "&section=" + section + "&reason=" + reason
});
});
document.getElementById("reportMistranslation"+section).innerText="Report Submitted";
document.getElementById("reportMistranslation"+section).innerText="Report Submitted";
document.getElementById("reportMistranslation"+section).s="Report Submitted";
document.getElementById("reportMistranslation"+section).s="Report Submitted";
}
}
}