0.8.398
This commit is contained in:
@@ -22,7 +22,9 @@ function select_tab_profile (el,url,owner_type=null) {
|
||||
} else if (url.includes('get_routes')){
|
||||
confirm_url = `/routes/${url}/`
|
||||
}
|
||||
document.querySelector(".info_profile").innerHTML = '<img src="/static/img/svg/loader.svg" style="height: 30px;position: absolute;top: 50%;left: 50%;"/>'
|
||||
if (window.location.href.includes("profile")){
|
||||
document.querySelector(".info_profile").innerHTML = '<img src="/static/img/svg/loader.svg" style="height: 30px;position: absolute;top: 50%;left: 50%;"/>'
|
||||
}
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
url: confirm_url,
|
||||
@@ -706,7 +708,7 @@ function open_overlay (curtain) {
|
||||
overlay.classList.toggle('hidden')
|
||||
}
|
||||
} else {
|
||||
if (document.querySelector(".menu_buttons.left.open") && curtain.classList.contains('open')){
|
||||
if (!document.querySelector(".menu_buttons.left.first.open") && document.querySelector(".menu_buttons.left.open") && curtain.classList.contains('open')){
|
||||
|
||||
} else {
|
||||
overlay.classList.toggle("show")
|
||||
@@ -716,6 +718,7 @@ function open_overlay (curtain) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function toggle_cut_width_curtain (el) {
|
||||
let parent = el.parentNode
|
||||
parent.classList.toggle('open')
|
||||
@@ -763,11 +766,13 @@ function close_open_curtain (){
|
||||
last_open_curtain.classList.toggle('open')
|
||||
last_open_curtain.classList.toggle('close')
|
||||
open_overlay(last_open_curtain)
|
||||
toggle_cut_width_curtain(last_open_curtain)
|
||||
} else if (window.location.href.includes('profile')) {
|
||||
let curtain = document.querySelector('.menu_buttons.right')
|
||||
curtain.classList.toggle('open')
|
||||
curtain.classList.toggle('close')
|
||||
open_overlay(curtain)
|
||||
toggle_cut_width_curtain(curtain)
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -775,8 +780,19 @@ function close_open_curtain (){
|
||||
curtain.classList.toggle("open")
|
||||
curtain.classList.toggle("close")
|
||||
open_overlay(curtain)
|
||||
toggle_cut_width_curtain(curtain)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function reAdressClickOnbackrground (event,el) {
|
||||
// let overlay = document.querySelector(".block_overlay")
|
||||
let element_click = document.elementFromPoint(event.pageX, event.pageY)
|
||||
if (!element_click || element_click === el){
|
||||
element_click = document.querySelector(".block_overlay")
|
||||
}
|
||||
element_click.click()
|
||||
}
|
||||
|
||||
// function show_header_list () {
|
||||
|
||||
Reference in New Issue
Block a user