diff --git a/amadeus/static/js/chat.js b/amadeus/static/js/chat.js index 8b719ad..da0fb6d 100644 --- a/amadeus/static/js/chat.js +++ b/amadeus/static/js/chat.js @@ -126,7 +126,7 @@ function getModalInfo(btn, space, space_type) { $(this).text(actual); } } - }); + }); var counter = $(chat_list_item_id).find('.chat_notify_list').text(); @@ -194,6 +194,25 @@ function getModalInfo(btn, space, space_type) { }); } +function getProfile(btn, space, space_type) { + var url = btn.data('url'); + + $.ajax({ + method: 'get', + url: url, + data: {'space': space, 'space_type': space_type}, + success: function (response) { + var modal_shown = $("#chat-modal-info").is(":visible"); + + $("#chat-modal-info").html(response); + + $("#chat-modal-info").modal('show'); + + $.material.init(); + } + }); +} + function getForm(field) { var url = field.data('url'); diff --git a/chat/templates/chat/_view_participant.html b/chat/templates/chat/_view_participant.html index 3ff80aa..0f13cce 100644 --- a/chat/templates/chat/_view_participant.html +++ b/chat/templates/chat/_view_participant.html @@ -10,7 +10,7 @@