/[drupal]/contributions/modules/poormanscron/poormanscron.js
ViewVC logotype

Diff of /contributions/modules/poormanscron/poormanscron.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Tue Sep 29 22:31:58 2009 UTC revision 1.1.2.1, Tue Sep 29 22:31:58 2009 UTC
# Line 0  Line 1 
1    // $Id$
2    
3    /**
4     * Checks to see if the cron should be automatically run.
5     */
6    Drupal.behaviors.cronCheck = function(context) {
7      if (Drupal.settings.cronCheck || false) {
8        $('body:not(.cron-check-processed)', context).addClass('cron-check-processed').each(function() {
9          // Only execute the cron check if its the right time.
10          if (Math.round(new Date().getTime() / 1000.0) > Drupal.settings.cronCheck) {
11            $.get(Drupal.settings.basePath + 'poormanscron/run-cron-check');
12          }
13        });
14      }
15    };

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2