Commit 593bafb0 authored by alexpott's avatar alexpott
Browse files

Issue #2061315 by StephaneQ: Remove system.cron.js and libraries definition.

parent 0d9a413e
(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);
......@@ -1975,19 +1975,6 @@ function system_library_info() {
array('system', 'jquery.once'),
),
);
$libraries['drupal.system.cron'] = array(
'title' => 'System cron',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'system') . '/system.cron.js' => array(),
),
'dependencies' => array(
array('system', 'jquery'),
array('system', 'drupal'),
array('system', 'drupalSettings'),
array('system', 'jquery.once'),
),
);
$libraries['drupal.system.modules'] = array(
'title' => 'System modules',
'version' => VERSION,
......
......@@ -164,7 +164,7 @@ function testHeaderStorage() {
$system_css_path = drupal_get_path('module', 'system') . '/css/system.maintenance.css';
drupal_add_css($system_css_path);
$system_js_path = drupal_get_path('module', 'system') . '/system.cron.js';
$system_js_path = drupal_get_path('module', 'user') . '/user.permissions.js';
drupal_add_js($system_js_path);
$view->destroy();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment