Skip to content
Snippets Groups Projects
Select Git revision
  • 74b5b36cbc516d5d3fb16daeaec0e8558e6a0db6
  • 11.x default protected
  • 11.2.x protected
  • 10.6.x protected
  • 10.5.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.3 protected
  • 11.2.4 protected
  • 10.5.2 protected
  • 11.2.3 protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
41 results

system.cron.js

Blame
  • catch's avatar
    Issue #1481560 by nod_: Add 'use strict' to all core JavaScript to enforce clean code.
    catch authored
    bd30dbfc
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    system.cron.js 496 B
    (function ($) {
    
    "use strict";
    
    /**
     * 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(Drupal.url('system/run-cron-check'));
            }
          });
        }
      }
    };
    
    })(jQuery);