From 48b213f5588b3b1800acb0d7cfeb9f3dd682903b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 10 Aug 2015 14:10:29 -0400 Subject: [PATCH] CRM-13823 - Remove unused file --- .../Admin/Form/Setting/versionCheckOptions.js | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 templates/CRM/Admin/Form/Setting/versionCheckOptions.js diff --git a/templates/CRM/Admin/Form/Setting/versionCheckOptions.js b/templates/CRM/Admin/Form/Setting/versionCheckOptions.js deleted file mode 100644 index c6de62a11a..0000000000 --- a/templates/CRM/Admin/Form/Setting/versionCheckOptions.js +++ /dev/null @@ -1,24 +0,0 @@ -// https://civicrm.org/licensing -CRM.$(function($) { - 'use strict'; - $(document) - .off('.crmVersionCheckOptions') - .on('click.crmVersionCheckOptions', 'a.crm-setVersionCheckIgnoreDate', function(e) { - var isSecurity = !($(this).closest('.ui-notify-message').hasClass('info')); - var msg = '

' + ts('This will suppress notifications about all currently available updates.') + ' '; - if (isSecurity) { - msg += ts('Notifications will resume when a new security advisory is published.') + - '

' + - ts('Warning: Do this only if you have already taken alternate steps to ensure your site is secure.'); - } else { - msg += ts('Notifications will resume when a new release is published.'); - } - msg += '

'; - CRM.confirm({message: msg, title: $(this).text()}) - .on('crmConfirm:yes', function() { - CRM.api3('setting', 'create', {versionCheckIgnoreDate: new Date().toISOString().slice(0,10)}, true); - CRM.closeAlertByChild('a.crm-setVersionCheckIgnoreDate'); - }); - e.preventDefault(); - }); -}); -- 2.25.1