Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix address popovers
Patryk Zawadzkid9a644d43511
diff --git a/saleor/order/static/js/order_details.js b/saleor/order/static/js/order_details.jsindex e953a0876b..999e6a9404 100644--- a/saleor/order/static/js/order_details.js+++ b/saleor/order/static/js/order_details.js@@ -1 +1,3 @@-$(function(){$(".address-details").popover({placement: 'auto right'});});+$(function() {+ $(".address-details").popover({placement: 'auto right'});+});diff --git a/saleor/static/less/style.less b/saleor/static/less/style.lessindex 7d9f83df05..3190c6ecd8 100644--- a/saleor/static/less/style.less+++ b/saleor/static/less/style.less@@ -10,6 +10,8 @@.address-details {border-bottom: 1px dashed;+ color: #3a87ad;+ cursor: pointer;}.popover {diff --git a/saleor/userprofile/templates/userprofile/snippets/address-short.html b/saleor/userprofile/templates/userprofile/snippets/address-short.htmlindex 398b3e2d38..823b1b3938 100644--- a/saleor/userprofile/templates/userprofile/snippets/address-short.html+++ b/saleor/userprofile/templates/userprofile/snippets/address-short.html@@ -1,4 +1,4 @@-<a class="address-details" href="#"+<span class="address-details"data-content="{% if address.company_name %}{{ address.company_name }}<br>{% endif %}{{ address.street_address_1 }}<br>{% if address.street_address_2 %}@@ -7,4 +7,4 @@{{ address.postal_code }} {{ address.city }}<br>{% if address.country_area %}{{ address.country_area }}, {% endif %}{{ address.get_country_display }}<br>{{ address.phone }}"- data-html="true" title="{{ address.first_name }} {{ address.last_name }}">{{ address }}</a>+ data-html="true" title="{{ address.first_name }} {{ address.last_name }}">{{ address }}</span>