मीडियाविकि:Gadget-morebits.js: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
Update to commit 0d68ee
Update to commit 959163
लाइन 2,330:
 
// errors here are only generated by extensions which hook APIEditBeforeSave within MediaWiki
// Wikimedia wikis should only return spam blacklist errors, captchas, and captchasAbuseFilter messages
var blacklist$editNode = $(xml).find('edit').attr('spamblacklist');
var blacklist = $editNode.attr('spamblacklist');
 
if (blacklist) {
Line 2,338 ⟶ 2,339:
code.appendChild(document.createTextNode(blacklist));
ctx.statusElement.error(['Could not save the page because the URL ', code, ' is on the spam blacklist.']);
} else if ( $(xml).find('captcha').length > 0 ) {
}
else if ( $(xml).find('captcha').length > 0 ) {
ctx.statusElement.error("Could not save the page because the wiki server wanted you to fill out a CAPTCHA.");
} else if ( $editNode.attr('code') === 'abusefilter-disallowed' ) {
}
ctx.statusElement.error('सम्पादन को सम्पादन फ़िल्टर "' + $editNode.attr('info').substring(17) + '" द्वारा रोका गया है।');
else {
} else if ( $editNode.attr('info').indexOf('Hit AbuseFilter:') === 0 ) {
var div = document.createElement('div');
div.className = "toccolours";
div.style.fontWeight = "normal";
div.style.color = "black";
div.innerHTML = $editNode.attr('warning');
ctx.statusElement.error([ 'सम्पादन फ़िल्टर ने निम्न चेतावनी दी है: ', div, 'यदि आप सम्पादन करना चाहते हैं तो पुनः यत्न करें। यह चेतावनी दूसरी बार नहीं आएगी।' ]);
// XXX provide the user with a way to automatically retry the action if they so choose -
// I can't see how to do this without creating a UI dependency on Morebits.wiki.page though -- TTO
} else {
ctx.statusElement.error("पृष्ठ सहेजते समय ए॰पी॰आई से अज्ञात त्रुटि मिली");
}