מדיה ויקי:Gadget-QuickRCDiff.js: הבדלים בין גרסאות בדף
hook |
מ 25 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-QuickRCDiff.js יובאו |
||
| (7 גרסאות ביניים של 3 משתמשים אינן מוצגות) | |||
| שורה 1: | שורה 1: | ||
if ($.inArray(mw.config.get('wgCanonicalSpecialPageName'),['Watchlist','Recentchanges'])!=-1) (function(){ | |||
var lastRequset, $diffDialog, $diffContent, patrolBtn, thanksBtn, diffId, diffTitle; | |||
mw.loader.load([' | |||
function qRcDiffHandler(content){ | |||
mw.loader.load(['jquery.spinner', 'mediawiki.diff.styles']); | |||
$('.mw- | $('.mw-changeslist-edit', content).not('qRcDiff').addClass('qRcDiff').click(function(e) { | ||
if (e.target !== this || ! $(this). | if (e.target !== this || ! $(this).find('a:contains(היסטוריה)').length) { return; } | ||
//initalizations | //initalizations | ||
if (!$diffContent) $diffContent = $('<div>'); | if (!$diffContent) $diffContent = $('<div>'); | ||
| שורה 137: | שורה 137: | ||
}); | }); | ||
}); | }); | ||
}); | } | ||
mw.hook( 'wikipage.content' ).add(qRcDiffHandler); | |||
})(); | |||