0.1.36
chat routines
This commit is contained in:
@@ -57,7 +57,7 @@ def send_msg_ajax(request):
|
||||
data = json.loads(request.body)
|
||||
ticket = None
|
||||
|
||||
tpl_name = 'blocks/profile/b_chats.html'
|
||||
tpl_name = 'blocks/profile/b_messages_container.html'
|
||||
|
||||
if data['text']:
|
||||
|
||||
@@ -81,7 +81,7 @@ def send_msg_ajax(request):
|
||||
kwargs = {
|
||||
'sender': ticket.owner,
|
||||
'receiver': ticket.manager,
|
||||
'text': ticket.text,
|
||||
'text': data['text'],
|
||||
}
|
||||
|
||||
kwargs.update({'group': ticket})
|
||||
@@ -93,12 +93,12 @@ def send_msg_ajax(request):
|
||||
'ticket': ticket,
|
||||
'cur_receiver': receiver,
|
||||
'messages': get_messages_for_ticket(ticket),
|
||||
'text': ticket.text,
|
||||
'modifiedDT': ticket.modifiedDT
|
||||
'text': data['text'],
|
||||
'modifiedDT': msg.modifiedDT
|
||||
})
|
||||
res_Dict.update(get_ticketsDict_for_staff(request.user))
|
||||
|
||||
tpl_name = 'blocks/profile/b_support_chat.html'
|
||||
# tpl_name = 'blocks/profile/b_support_chat.html'
|
||||
|
||||
else:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user