0.0.37
This commit is contained in:
@@ -247,3 +247,23 @@ function sendMessageEnter (e,id_ticket,sender,receiver){
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function show_inf_carrier (el) {
|
||||
event.preventDefault()
|
||||
let form = el.form
|
||||
let ph_1 = form[0]
|
||||
let ph_2 = form[1]
|
||||
let em_2 = form[2]
|
||||
let btn_open_chat = form[3]
|
||||
|
||||
ph_1.parentElement.children[1].classList.toggle("active");
|
||||
ph_2.parentElement.children[1].classList.toggle("active");
|
||||
em_2.parentElement.children[1].classList.toggle("active");
|
||||
if (el.innerHTML === "Скрыть контакт"){
|
||||
el.innerHTML = "Открыть контакт"
|
||||
} else{
|
||||
el.innerHTML = "Скрыть контакт"
|
||||
}
|
||||
btn_open_chat.classList.toggle("active")
|
||||
}
|
||||
@@ -396,8 +396,8 @@ function getRoute(){
|
||||
'route_id': id
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
$.ajax({
|
||||
headers: {"X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val()},
|
||||
url: '/ru/routes/edit_route/',
|
||||
type: "POST",
|
||||
// async: true,
|
||||
@@ -406,14 +406,14 @@ function getRoute(){
|
||||
contentType: false,
|
||||
// enctype: 'json',
|
||||
data: JSON.stringify(route_obj),
|
||||
success: function(data){
|
||||
success: function (data) {
|
||||
console.log('data received')
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html;
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
error: function (data, exception) {
|
||||
console.log(101)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user