MediaWiki:AjaxQuickDelete.js: Διαφορά μεταξύ των αναθεωρήσεων

Migration: addPortletLink → mw.util.addPortletLink
(Νέα σελίδα: // Original code written by User:Ilmari Karonen // Rewritten & extended by User:DieBuche. Botdetection and encoding fixer by User:Lupo // // Ajax-based replacement f...)
 
(Migration: addPortletLink → mw.util.addPortletLink)
// Set up toolbox link
if (wgNamespaceNumber != 14) {
mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.nominateForDeletion();', this.i18n.toolboxLinkDelete, 't-ajaxquickdelete', null);
} else {
mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.discussCategory();', this.i18n.toolboxLinkDiscuss, 't-ajaxquickdiscusscat', null);
}
 
 
// Also add a "Move & Replace" button to dropdown menu
mw.util.addPortletLink('p-cactions', 'javascript:AjaxQuickDelete.moveFile("", "");', this.i18n.dropdownMove, 'ca-quickmove', 'ca-move');
 
//Add quicklinks to template
if (window.QuickDeleteEnhanced && wgNamespaceNumber == 6) {
$.each(this.insertTagButtons, function (k, v) {
mw.util.addPortletLink('p-tb', 'javascript:AjaxQuickDelete.insertTagOnPage("' + v.tag + '","'
+ v.img_summary + '","' + v.talk_tag + '","' + v.talk_summary + '","' + v.prompt_text + '");', v.label);
});
21

επεξεργασίες