initial commit, from drupal7base

This commit is contained in:
Bachir Soussi Chiadmi
2015-02-17 15:40:34 +01:00
commit e787137542
5750 changed files with 1170043 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
(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);