diff --git a/emencia/django/newsletter/views/expo_views.py b/emencia/django/newsletter/views/expo_views.py index e59f9bdf..6a3928a6 100644 --- a/emencia/django/newsletter/views/expo_views.py +++ b/emencia/django/newsletter/views/expo_views.py @@ -159,6 +159,8 @@ def popup_validate(request): contact.send_activation() response['success'] = True + response['redirect'] = True + response['redirect_url'] = SubscribeView.success_url else: response['errors'] = form.errors diff --git a/static/client/js/_modules/block.common.js b/static/client/js/_modules/block.common.js index 2ff34586..c0140ee9 100644 --- a/static/client/js/_modules/block.common.js +++ b/static/client/js/_modules/block.common.js @@ -236,6 +236,10 @@ if (EXPO.common){ } if (id == "callback-form"){ dataLayer.push({'event': 'callbackform'}); + } + if (id == "subscribe-form" && data.redirect){ + window.location.href = data.redirect_url; + return } $.fancybox.close(); @@ -695,7 +699,7 @@ if (EXPO.common){ * @prop {object} seoHrefs - hashes to find proper links to hide on page * @method decode - decode bas64-code to html */ - + that.SEOhide = { seoContent:{}, seoHrefs:{}, @@ -717,7 +721,7 @@ if (EXPO.common){ break; } } - } + } }; /** diff --git a/templates/client/newsletters/activation_send.html b/templates/client/newsletters/activation_send.html index 6f408867..66c55792 100644 --- a/templates/client/newsletters/activation_send.html +++ b/templates/client/newsletters/activation_send.html @@ -14,7 +14,7 @@
- {% trans 'Мы работаем для настоящий и живых подписчиков! Поэтому подтвердите свой email, письмо уже на Вашей почте!' %} + {% trans 'Мы работаем для настоящих и живых подписчиков! Поэтому подтвердите свой email, письмо уже на Вашей почте!' %}
diff --git a/templates/client/popups/announce_subscription.html b/templates/client/popups/announce_subscription.html index a3c0e877..a5d8f08f 100644 --- a/templates/client/popups/announce_subscription.html +++ b/templates/client/popups/announce_subscription.html @@ -19,7 +19,7 @@

- {% trans 'Более 30 000 профессионалов получают наши анонсы событий каждую среду. Присоединяйтесь!' %} + {% trans 'Более 40 000 профессионалов получают наши анонсы событий каждую среду. Присоединяйтесь!' %}

@@ -98,4 +98,4 @@ }); {% endif %} -{% endif %} \ No newline at end of file +{% endif %}