1 // https://civicrm.org/licensing
5 .off('.crmVersionCheckOptions')
6 .on('click.crmVersionCheckOptions', 'a.crm-setVersionCheckIgnoreDate', function(e
) {
7 var isSecurity
= !($(this).closest('.ui-notify-message').hasClass('info'));
8 var msg
= '<p>' + ts('This will suppress notifications about all currently available updates.') + ' ';
10 msg
+= ts('Notifications will resume when a new security advisory is published.') +
12 ts('Warning: Do this only if you have already taken alternate steps to ensure your site is secure.');
14 msg
+= ts('Notifications will resume when a new release is published.');
17 CRM
.confirm({message
: msg
, title
: $(this).text()})
18 .on('crmConfirm:yes', function() {
19 CRM
.api3('setting', 'create', {versionCheckIgnoreDate
: new Date().toISOString().slice(0,10)}, true);
20 CRM
.closeAlertByChild('a.crm-setVersionCheckIgnoreDate');