From fc3534085d80d7abefbc975599e9c7db6bee6c37 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 17 Nov 2015 15:11:29 -0500 Subject: [PATCH] Remove deprecated js code --- js/Audit/audit.js | 53 ----------------------------------------------- js/crm.ajax.js | 17 --------------- 2 files changed, 70 deletions(-) delete mode 100644 js/Audit/audit.js diff --git a/js/Audit/audit.js b/js/Audit/audit.js deleted file mode 100644 index 4c878bcd1e..0000000000 --- a/js/Audit/audit.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - +--------------------------------------------------------------------+ - | CiviCRM version 4.7 | - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | - +--------------------------------------------------------------------+ - | This file is a part of CiviCRM. | - | | - | CiviCRM is free software; you can copy, modify, and distribute it | - | under the terms of the GNU Affero General Public License | - | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | - | | - | CiviCRM is distributed in the hope that it will be useful, but | - | WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | - | See the GNU Affero General Public License for more details. | - | | - | You should have received a copy of the GNU Affero General Public | - | License and the CiviCRM Licensing Exception along | - | with this program; if not, contact CiviCRM LLC | - | at info[AT]civicrm[DOT]org. If you have questions about the | - | GNU Affero General Public License or the licensing of CiviCRM, | - | see the CiviCRM license FAQ at http://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*/ - -function selectActivity(i) -{ - // deselect current selection - j = document.forms.Report.currentSelection.value; - ele = document.getElementById("civicase-audit-activity-" + j); - ele.className = "activity"; - ele = document.getElementById("civicase-audit-header-" + j); - ele.style.display = "none"; - ele = document.getElementById("civicase-audit-body-" + j); - ele.style.display = "none"; - - if ( i != 1 ) { - cj('#civicase-audit-activity-1').removeClass('activity selected'); - cj('#civicase-audit-activity-1').addClass('activity'); - cj('#civicase-audit-header-1').css({"display":"none"}); - cj('#civicase-audit-body-1').css({"display":"none"}); - } - - // select selected one - ele = document.getElementById("civicase-audit-activity-" + i); - ele.className = "activity selected"; - ele = document.getElementById("civicase-audit-header-" + i); - ele.style.display = "block"; - ele = document.getElementById("civicase-audit-body-" + i); - ele.style.display = "block"; - document.forms.Report.currentSelection.value = i; -} diff --git a/js/crm.ajax.js b/js/crm.ajax.js index 58a09a6efb..5412e67015 100644 --- a/js/crm.ajax.js +++ b/js/crm.ajax.js @@ -37,14 +37,6 @@ return url; }; - // @deprecated - $.extend ({'crmURL': - function (p, params) { - CRM.console('warn', 'Calling crmURL from jQuery is deprecated. Please use CRM.url() instead.'); - return CRM.url(p, params); - } - }); - $.fn.crmURL = function () { return this.each(function() { if (this.href) { @@ -152,15 +144,6 @@ })($.extend({}, settings, options)); }; - /** - * Backwards compatible with jQuery fn - * @deprecated - */ - $.fn.crmAPI = function(entity, action, params, options) { - CRM.console('warn', 'Calling crmAPI from jQuery is deprecated. Please use CRM.api3() instead.'); - return CRM.api.call(this, entity, action, params, options); - }; - $.widget('civi.crmSnippet', { options: { url: null, -- 2.25.1