मीडियाविकि:Gadget-twinkleprotect.js: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
Update to commit 9bac3c |
Update to commit 3965c7 |
||
लाइन 110:
var result = [];
$(xml).find('pr, flagged').each(function(index,
var $
var type, level, expiry, cascade = false;
if (protectionEntry.tagName.toLowerCase() === "flagged") {
level = $protectionEntry.attr('protection_level');
expiry = $protectionEntry.attr('protection_expiry');
} else {
type = Morebits.string.toUpperCaseFirstChar($protectionEntry.attr('type'));
level = $protectionEntry.attr('level');
expiry = $protectionEntry.attr('expiry');
cascade = $protectionEntry.attr('cascade') === '';
}
var boldnode = document.createElement('b');
boldnode.textContent =
result.push(boldnode);
if (
result.push(" (indefinite) ");
} else {
result.push(" (expires " + new Date(
}
if (
result.push("(cascading) ");
}
});
▲ boldnode.textContent = "Pending changes: enabled";
if (!result.length) {
|