dev #11
@@ -9,6 +9,7 @@ function load_routes (el,news=null,incrase,owner_type) {
|
|||||||
if (!news){
|
if (!news){
|
||||||
local_page_iterator = page_iterator
|
local_page_iterator = page_iterator
|
||||||
}
|
}
|
||||||
|
let check_url = (window.location.href.indexOf("my_routes") > -1)
|
||||||
let number_last_route = el.id
|
let number_last_route = el.id
|
||||||
// let incrase = 2
|
// let incrase = 2
|
||||||
// if (!news){
|
// if (!news){
|
||||||
@@ -20,13 +21,20 @@ function load_routes (el,news=null,incrase,owner_type) {
|
|||||||
}
|
}
|
||||||
let get_url = ""
|
let get_url = ""
|
||||||
let url_ajax = "get_articles_block/"
|
let url_ajax = "get_articles_block/"
|
||||||
if (!news){
|
if (!news && !check_url ){
|
||||||
let list = forloop_func_form(data_d,"get",get_url)
|
let list = forloop_func_form(data_d,"get",get_url)
|
||||||
data_d = list[0]
|
data_d = list[0]
|
||||||
get_url = list[1]
|
get_url = list[1]
|
||||||
url_ajax = "routes/find_routes/"
|
url_ajax = "routes/find_routes/"
|
||||||
|
|
||||||
|
} else if (check_url) {
|
||||||
|
let list = forloop_func_form(data_d,"get",get_url)
|
||||||
|
data_d = list[0]
|
||||||
|
get_url = list[1]
|
||||||
|
url_ajax = "routes/get_routes/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let loader = document.querySelector(".loader_f_loading_routes")
|
let loader = document.querySelector(".loader_f_loading_routes")
|
||||||
loader.classList.toggle("show")
|
loader.classList.toggle("show")
|
||||||
el.classList.toggle("hide")
|
el.classList.toggle("hide")
|
||||||
@@ -185,6 +193,8 @@ function load_routes (el,news=null,incrase,owner_type) {
|
|||||||
}
|
}
|
||||||
insert_place.innerHTML = data.html
|
insert_place.innerHTML = data.html
|
||||||
document.querySelector(".loader_f_loading_routes.show").classList.remove("show")
|
document.querySelector(".loader_f_loading_routes.show").classList.remove("show")
|
||||||
|
|
||||||
|
|
||||||
if (data.last_block === true){
|
if (data.last_block === true){
|
||||||
el.classList.add("hide")
|
el.classList.add("hide")
|
||||||
} else if (data.last_block === false){
|
} else if (data.last_block === false){
|
||||||
|
|||||||
Reference in New Issue
Block a user