Issue #2061315 by StephaneQ: Remove system.cron.js and libraries definition.
parent
0d9a413e07
commit
593bafb0f7
|
@ -1,21 +0,0 @@
|
||||||
(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'),
|
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(
|
$libraries['drupal.system.modules'] = array(
|
||||||
'title' => 'System modules',
|
'title' => 'System modules',
|
||||||
'version' => VERSION,
|
'version' => VERSION,
|
||||||
|
|
|
@ -164,7 +164,7 @@ class CacheTest extends PluginTestBase {
|
||||||
|
|
||||||
$system_css_path = drupal_get_path('module', 'system') . '/css/system.maintenance.css';
|
$system_css_path = drupal_get_path('module', 'system') . '/css/system.maintenance.css';
|
||||||
drupal_add_css($system_css_path);
|
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);
|
drupal_add_js($system_js_path);
|
||||||
$view->destroy();
|
$view->destroy();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue