Разлика между версии на „Потребител:V111P/js/QuickDiffCommands.js“

м
редакция без резюме
м
$menuDiv.prepend(sp, $('<a href="#">&lt;</a>').click(clk(QuickDiffCmds.up)));
$menuDiv.prepend(sp, $('<a href="#">&lt;&lt;</a>').click(clk(QuickDiffCmds.upUnpatrolled)));
 
QuickDiffCmds.addCss();
 
$(document).keyup(function(e) {
addCss: function()
{
QuickDiffCmds.qdcCss = mw.util.addCSS(
$.when( mw.loader.using( 'mediawiki.util' ), $.ready ).then( function () {
'#quickdiff-menu {\
QuickDiffCmds.qdcCss = mw.util.addCSS(
'#quickdiffz-menuindex: {1;\
z-indexposition: 1absolute;\
positiontop: absolute0;\
topright: 040px;\
rightfont-family: 40pxsans-serif;\
);}'
font-family: sans-serif;\
}');
);
});
},
 
switch (idx) {
case 'rollbackGood': // fallthrough
case 'rollbackComment': if (!mw.ext || !mw.ext.QuickRollback) return; // fallthrough
case 'rollback': // fallthrough
case 'patrol': if (!QuickDiffCmds.userIsPatroller) return; break;
QuickDiffCmds.userIsAdmin = $.inArray("sysop", userGroups) > -1;
QuickDiffCmds.userIsPatroller = $.inArray("patroller", userGroups) > -1 || QuickDiffCmds.userIsAdmin;
QuickDiffCmds.addCss();
 
if (window.QuickDiff)