X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2Fcommon%2Fjsortable.tpl;h=e76d7793d3a308933a489c673225744da56380d0;hb=c03df98a87fb54c3da937a77c7d12d171a16ca56;hp=7beb21dae90e2a51ccb4728ce42f647610a6c015;hpb=b18e2d7c83a0957e6fbcfc0d0d478cdfb45ae5e5;p=civicrm-core.git diff --git a/templates/CRM/common/jsortable.tpl b/templates/CRM/common/jsortable.tpl index 7beb21dae9..e76d7793d3 100644 --- a/templates/CRM/common/jsortable.tpl +++ b/templates/CRM/common/jsortable.tpl @@ -1,26 +1,10 @@ {* +--------------------------------------------------------------------+ - | CiviCRM version 5 | - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2019 | - +--------------------------------------------------------------------+ - | 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. | + | Copyright CiviCRM LLC. All rights reserved. | | | - | 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 | + | This work is published under the GNU AGPLv3 license with some | + | permitted exceptions and without any warranty. For full license | + | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {literal} @@ -167,7 +151,7 @@ //plugin to sort on currency cj.fn.dataTableExt.oSort['currency-asc'] = function(a,b) { - var symbol = "{/literal}{$config->defaultCurrencySymbol()}{literal}"; + var symbol = "{/literal}{$defaultCurrencySymbol}{literal}"; var x = (a == "-") ? 0 : a.replace( symbol, "" ); var y = (b == "-") ? 0 : b.replace( symbol, "" ); x = parseFloat( x ); @@ -176,7 +160,7 @@ }; cj.fn.dataTableExt.oSort['currency-desc'] = function(a,b) { - var symbol = "{/literal}{$config->defaultCurrencySymbol()}{literal}"; + var symbol = "{/literal}{$defaultCurrencySymbol}{literal}"; var x = (a == "-") ? 0 : a.replace( symbol, "" ); var y = (b == "-") ? 0 : b.replace( symbol, "" ); x = parseFloat( x );