Sindbad~EG File Manager

Current Path : /var/www/web2/pps_back/modules/system/
Upload File :
Current File : /var/www/web2/pps_back/modules/system/system.cron.js

(function ($) {

/**
 * Checks to see if the cron should be automatically run.
 */
Drupal.behaviors.cronCheck = {
  attach: function(context, settings) {
    if (settings.cronCheck || false) {
      $('body').once('cron-check', function() {
        // Only execute the cron check if its the right time.
        if (Math.round(new Date().getTime() / 1000.0) > settings.cronCheck) {
          $.get(settings.basePath + 'system/run-cron-check');
        }
      });
    }
  }
};

})(jQuery);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists