fix button "Edit" encode url in address and contact template

This commit is contained in:
Raul Viveros 2016-01-09 22:05:45 +01:00
parent 6cb8662bec
commit 1d5f8d4436
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
{% if(addr_list[i].is_shipping_address) { %}
<span class="text-muted">({%= __("Shipping") %})</span>{% } %}
<a href="#Form/Address/{%= addr_list[i].name %}"
<a href="#Form/Address/{%= encodeURIComponent(addr_list[i].name) %}"
class="btn btn-default btn-xs pull-right">
{%= __("Edit") %}</a>
</p>

View File

@ -9,7 +9,7 @@
<span class="text-muted">({%= __("Primary") %})</span>
{% } %}
<a href="#Form/Contact/{%= contact_list[i].name %}"
<a href="#Form/Contact/{%= encodeURIComponent(contact_list[i].name) %}"
class="btn btn-xs btn-default pull-right">
{%= __("Edit") %}</a>
</p>