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

מאין תקציר עריכה
מ ניסיון
שורה 1: שורה 1:
// Patrollers alarm clock
// Patrollers alarm clock
$(document).ready(function(){
function pac_sendNonPatrolledEditsQuery(patrols) {
function pac_sendNonPatrolledEditsQuery(patrols) {
var aj = sajax_init_object();
var aj = sajax_init_object();
שורה 155: שורה 156:




$(document).ready(){
if (mw.config.get('wgCanonicalSpecialPageName') == 'Recentchanges') {  // mark cookie with last visit and exit.
if (mw.config.get('wgCanonicalSpecialPageName') == 'Recentchanges') {  // mark cookie with last visit and exit.
pac_setCookieVal('lastVisitRC', new Date().valueOf());
pac_setCookieVal('lastVisitRC', new Date().valueOf());
pac_setDistress(false);
pac_setDistress(false);
}
else
setInterval(pac_patrollersWakeUpPeriodic, 1000); // it's ok to call every second - the function will quit if needed.
}
}
else
setInterval(pac_patrollersWakeUpPeriodic, 1000); // it's ok to call every second - the function will quit if needed.
});