You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
570 B
20 lines
570 B
{{ form }}
|
|
|
|
<script>
|
|
$('form[name="start_video_chat"]').on('submit', function(e) {
|
|
e.preventDefault();
|
|
|
|
var createChatRoom = $.post(
|
|
'{{ _p.web_ajax }}chat.ajax.php',
|
|
{
|
|
room_name: $(this).find('input[name="chat_room_name"]').val(),
|
|
to: $(this).find('input[name="to"]').val(),
|
|
action: 'create_room'
|
|
}
|
|
);
|
|
|
|
$.when(createChatRoom).done(function(response) {
|
|
$('#global-modal').find('.modal-body').html(response);
|
|
});
|
|
});
|
|
</script>
|
|
|