This prevents calculations on values that may contain dollar signs and commas.
The get_percentage() method was returning a NaN value, which can't be JSON-encoded. json_encode() was returning JSON_ERROR_INF_OR_NAN. This fixes that, and the broken AJAX request.
This prevents calculations on values that may contain dollar signs and commas.
The
get_percentage()
method was returning a NaN value, which can't be JSON-encoded.json_encode()
was returningJSON_ERROR_INF_OR_NAN
. This fixes that, and the broken AJAX request.Fixes #35