+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
function calculateText(priceElement) {
//CRM-16034 - comma acts as decimal in price set text pricing
- var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, ''));
+ //CRM-19937 - dollar sign easy mistake to make by users.
+ var textval = parseFloat(cj(priceElement).val().replace(thousandMarker, '').replace(symbol, ''));
if (isNaN(textval)) {
textval = parseFloat(0);