From 593bafb0f7a54df0205a6341c9ca017b1284d35c Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Fri, 9 Aug 2013 23:36:29 +0100 Subject: [PATCH] Issue #2061315 by StephaneQ: Remove system.cron.js and libraries definition. --- core/modules/system/system.cron.js | 21 ------------------- core/modules/system/system.module | 13 ------------ .../Drupal/views/Tests/Plugin/CacheTest.php | 2 +- 3 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 core/modules/system/system.cron.js diff --git a/core/modules/system/system.cron.js b/core/modules/system/system.cron.js deleted file mode 100644 index 0686982dc3a..00000000000 --- a/core/modules/system/system.cron.js +++ /dev/null @@ -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); diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 1935f5c5c90..c44932ab350 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -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, diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php index 4dc8a563104..237a7abb1e0 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/CacheTest.php @@ -164,7 +164,7 @@ class CacheTest extends PluginTestBase { $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();