MediaWiki:Gadget-friendlytalkback.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan
Kenrick95 (bicara | kontrib)
Repo at d9666d4: Update Twinkle from upstream
Baris 20:
}
 
Twinkle.addPortletLink( Twinkle.talkback.callback, "TB", "friendly-talkbackbalasan pembicaraan ramah", "Balasan pembicaraan mudah" );
};
 
Baris 85:
 
// Check whether the user has opted out from talkback
var query = {
// TODO: wgCategories is only set on action=view (bug 45033)
action: 'query',
var wgcat = mw.config.get("wgCategories");
prop: 'extlinks',
if (wgcat.length && wgcat.indexOf("Pengguna yang tidak mau menerima balasan percakapan") === -1) {
titles: mw.config.get('wgPageName'),
Twinkle.talkback.optout = false;
elquery: 'userjs.invalid/noTalkback',
} else {
ellimit: '1'
var query = {
};
action: 'query',
var wpapi = new Morebits.wiki.api("Fetching talkback opt-out status", query, Twinkle.talkback.callback.optoutStatus);
prop: 'extlinks',
wpapi.post();
titles: mw.config.get('wgPageName'),
elquery: 'userjs.invalid/noTalkback',
ellimit: '1'
};
var wpapi = new Morebits.wiki.api("Fetching talkback opt-out status", query, Twinkle.talkback.callback.optoutStatus);
wpapi.post();
}
};
 
Baris 429 ⟶ 423:
}
text += "|more=" + message.trim() + "}}";
talkpage.setEditSummary("Please check the discussion at [[:" + tbPageName +
(section ? ("#" + section) : "") + "]]" + Twinkle.getPref("summaryAd"));
 
Baris 449 ⟶ 443:
}
 
var editSummary = "Talkback ([[:";
if (tbtarget !== "other" && !/^\s*user talk:/i.test(tbPageName)) {
editSummary += "User talk:";