diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index d2ba461..7733fd1 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -764,11 +764,14 @@ function sendMessageEnter (e,id_ticket,sender,receiver){ } } -function send_subscribe (id, for_movers, subscribe){ +function send_subscribe (el, id, for_movers, subscribe){ if (!for_movers) { let data = { 'subscribe_id': id } + + el.innerHTML = ''; + $.ajax({ headers: {"X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val()}, url: '/subscribes/subscribe_now/', diff --git a/templates/blocks/profile/b_subscribe_current.html b/templates/blocks/profile/b_subscribe_current.html index 886f1dd..86d54d1 100644 --- a/templates/blocks/profile/b_subscribe_current.html +++ b/templates/blocks/profile/b_subscribe_current.html @@ -80,7 +80,7 @@ {% if not item.order_error %} {% endif %} @@ -93,7 +93,7 @@
{% translate "Сообщение от банка:" %} {{ item.order_error }}
{% translate "Повторить оплату" %} diff --git a/templates/blocks/profile/b_subscribe_variants.html b/templates/blocks/profile/b_subscribe_variants.html index 45c767d..4eb0be6 100644 --- a/templates/blocks/profile/b_subscribe_variants.html +++ b/templates/blocks/profile/b_subscribe_variants.html @@ -54,7 +54,7 @@
- +
*{% translate "для отмены подписки создайте запрос в техподдержке" %}
diff --git a/templates/blocks/static_pages_blocks/b_mover_search.html b/templates/blocks/static_pages_blocks/b_mover_search.html index f3946b7..7917695 100644 --- a/templates/blocks/static_pages_blocks/b_mover_search.html +++ b/templates/blocks/static_pages_blocks/b_mover_search.html @@ -188,7 +188,7 @@
- +
*{% translate "для отмены подписки создайте запрос в техподдержке" %}