CRM-13823 - Remove unused file
authorColeman Watts <coleman@civicrm.org>
Mon, 10 Aug 2015 18:10:29 +0000 (14:10 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 10 Aug 2015 18:10:29 +0000 (14:10 -0400)
templates/CRM/Admin/Form/Setting/versionCheckOptions.js [deleted file]

diff --git a/templates/CRM/Admin/Form/Setting/versionCheckOptions.js b/templates/CRM/Admin/Form/Setting/versionCheckOptions.js
deleted file mode 100644 (file)
index c6de62a..0000000
+++ /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 = '<p>' + ts('This will suppress notifications about all currently available updates.') + ' ';
-      if (isSecurity) {
-        msg += ts('Notifications will resume when a new security advisory is published.') +
-          '</p><p>' +
-          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 += '</p>';
-      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();
-    });
-});