MediaWiki:Gadget-twinkleprotect.js: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Repo at d9666d4: Update Twinkle from upstream |
Repo at a491314: tracking branch 'upstream/master'; re-enable check for flaggedrevs/pending changes being enabled; Don't fail if flaggedrevs/pending changes aren't enabled" |
||
Baris 124:
};
// mw.loader.getState('ext.flaggedRevs.review') returns null if the
// FlaggedRevs extension is not registered. Previously, this was done with
// wgFlaggedRevsParams, but after 1.34-wmf4 it is no longer exported if empty
// (https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FlaggedRevs/+/508427)
Twinkle.protect.fetchProtectionLevel = function twinkleprotectFetchProtectionLevel() {
Baris 137 ⟶ 138:
letype: 'protect',
letitle: mw.config.get('wgPageName'),
prop: (mw.
inprop: 'protection',
titles: mw.config.get('wgPageName')
Baris 150 ⟶ 151:
var earlyDecision = [protectDeferred];
if (mw.
earlyDecision.push(stableDeferred);
}
Baris 190 ⟶ 191:
// show the protection level and log info
Twinkle.protect.hasProtectLog = !!protectData[0].query.logevents.length;
Twinkle.protect.hasStableLog = mw.
Twinkle.protect.currentProtectionLevels = current;
Baris 439 ⟶ 440:
]
});
if (mw.
field2.append({
type: 'checkbox',
|