settings.js 531 B

12345678910111213141516171819
  1. /**
  2. * @file
  3. * Provides an AJAX handler for the cron URL reset functionality.
  4. */
  5. (function ($) {
  6. 'use strict';
  7. Drupal.behaviors.AccountSentinelSettings = {
  8. attach: function (context, settings) {
  9. $('#cron-reset-link').click(function () {
  10. $.getJSON(this.getAttribute('href') + '&js=1', function (data) {
  11. $('#cron-link').html(data.url_cron).attr('href', data.url_cron);
  12. $('#cron-reset-link').attr('href', data.url_reset);
  13. });
  14. return false;
  15. });
  16. }
  17. };
  18. })(jQuery);