מדיה ויקי:Gadget-DeleteRequest.js: הבדלים בין גרסאות בדף

לא עילה להסתרת גרסה
חתימה כפולה
שורה 112: שורה 112:
function addMenuItem(caption, tooltip, message, accessKey) {
function addMenuItem(caption, tooltip, message, accessKey) {
var a = mw.util.addPortletLink('p-cactions','#',caption,'',tooltip.replace(/replaceParam/g, mw.config.get("wgPageName").replace(/_/g, " ")).replace(/replaceUser/g, mw.config.get('wgRelevantUserName')),(accessKey||''));
var a = mw.util.addPortletLink('p-cactions','#',caption,'',tooltip.replace(/replaceParam/g, mw.config.get("wgPageName").replace(/_/g, " ")).replace(/replaceUser/g, mw.config.get('wgRelevantUserName')),(accessKey||''));
var alreadyClicked;
$(a).click(function() {
$(a).click(function() {
if (alreadyClicked) return;
alreadyClicked = true;
checkRequestDuplication().fail(function(err){
checkRequestDuplication().fail(function(err){
mw.notify(err);
mw.notify(err);