added account_sentinel contrib module

This commit is contained in:
2019-10-21 14:56:57 +02:00
parent 50d08c7efd
commit a7f0bb7650
12 changed files with 2968 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
/**
* @file
* Provides an AJAX handler for the cron URL reset functionality.
*/
(function ($) {
'use strict';
Drupal.behaviors.AccountSentinelSettings = {
attach: function (context, settings) {
$('#cron-reset-link').click(function () {
$.getJSON(this.getAttribute('href') + '&js=1', function (data) {
$('#cron-link').html(data.url_cron).attr('href', data.url_cron);
$('#cron-reset-link').attr('href', data.url_reset);
});
return false;
});
}
};
})(jQuery);