diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 99f84a7..be9862e 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -429,7 +429,10 @@ function OnSelectionChange(el) { -function createRoute(el){ +function createRoute(el, owner_type){ + let obj = { + 'owner_type': owner_type + } $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, @@ -440,7 +443,7 @@ function createRoute(el){ processData: false, contentType: false, // enctype: 'json', - // data: {}, + data: obj, success: function(data){ if (data.user_alerts) { getNewMessageSession() diff --git a/templates/blocks/b_user_profile.html b/templates/blocks/b_user_profile.html index 692b33d..d9b7554 100644 --- a/templates/blocks/b_user_profile.html +++ b/templates/blocks/b_user_profile.html @@ -7,9 +7,13 @@ Поиск посылки -
+
- Разместить объявление + Разместить объявление как отправитель +
+
+ + Разместить объявление как перевозчик