0.0.38
This commit is contained in:
18
static/js/find_route.js
Normal file
18
static/js/find_route.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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")
|
||||
}
|
||||
@@ -249,21 +249,3 @@ 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")
|
||||
}
|
||||
Reference in New Issue
Block a user